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>
Thu, 30 Sep 2010 00:49:26 +0000 (17:49 -0700)
commit9b945ab642a9f94de4c9bb43c99f2ea1f667cf28
treeeb86befdcfb6ac6d0b2ba92774e83aff90b4df11
parent5212055c494b00acca02a4daa710a1d98c9295d1
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