[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)
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>

No differences found