ARM: add option to flush console before reboot
authorDima Zavin <dima@android.com>
Tue, 23 Aug 2011 22:56:50 +0000 (15:56 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:34:58 +0000 (13:34 -0700)
commitf833f2c25f471bc999b64522d4f32de7eff4455b
tree046341b28a7b8641b2bf872bc095bf3712403382
parent59ace6e83677027aa4dd1fb0a436b6ddfe5e8a27
ARM: add option to flush console before reboot

If the console_lock was held while the system was rebooted, the messages
in the temporary logbuffer would not have propogated to all the console
drivers.

This force releases the console lock if it failed to be acquired.

Change-Id: I193dcf7b968be17966833e50b8b8bc70d5d9fe89
Signed-off-by: Dima Zavin <dima@android.com>
arch/arm/Kconfig
arch/arm/kernel/process.c