OSDN Git Service

misc: apanic: Improved bad-block / watchdog handling
authorTom Zhu <ling.zhu@motorola.com>
Tue, 22 Sep 2009 21:36:45 +0000 (16:36 -0500)
committerSan Mehat <san@google.com>
Wed, 23 Sep 2009 20:38:25 +0000 (13:38 -0700)
commit27ec2759053b4d92e6d41cf129755c683714529e
tree37d29341980cc0a5605df5ac7f065bbd4073344b
parent8da2b92f45a99ba87959b441a522ce5ebb833d96
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