[MTD] Add sync/unblank function to mtdoops
authorRichard Purdie <rpurdie@openedhand.com>
Tue, 10 Jul 2007 19:33:54 +0000 (20:33 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 11 Jul 2007 13:57:17 +0000 (14:57 +0100)
commit8691a729a2a3d739ee40a577053157393450aabd
treedb9c69d95dc2ff04e0752ba2df8ecb3bfd217d21
parenta2e96b627b58efe2d618a415f34b9b9d9f829bd6
[MTD] Add sync/unblank function to mtdoops

mtdoops wasn't ensuring data was flushed to flash in crash situations
after recent changes in mainline kernels as tracking the
oops_in_progress variable was no longer enough. We can use the "unblank"
console call as a sync call to tell us to write out the buffer though.

Therefore add a sync function to mtdoops and call this when console
unblank events occur.

Signed-off-by: Richard Purdie <rpurdie@openedhand.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/mtdoops.c