misc: apanic: bad block handling
authorTom Zhu <ling.zhu@motorola.com>
Mon, 21 Sep 2009 21:36:05 +0000 (16:36 -0500)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:18 +0000 (09:09 -0700)
commitd2e9d64b77d4aaedee9fd273bf66448a21fc45ba
treefaf66bbfdc03e8bac57bd45a19b210ed20a82a31
parente3af8d4fce4970d4206dbe06f22a9c1b5e322858
misc: apanic: bad block handling

Add bad block handling in apanic

Signed-off-by: Tom Zhu <ling.zhu@motorola.com>
Signed-off-by: San Mehat <san@google.com>
misc: apanic: Improved bad-block / watchdog handling

1. handle cases that there is no more good blocks
2. touch softlockup watchdog at the start of apanic
3. change unsigned char get_bb() to unsigned int get_bb()
4. return idx instead of rc2, to keep the previous written pages.

Signed-off-by: Tom Zhu <ling.zhu@motorola.com>
Signed-off-by: San Mehat <san@google.com>
drivers/misc/apanic.c