ARM: add option to flush console before reboot
authorDima Zavin <dima@android.com>
Tue, 23 Aug 2011 22:56:50 +0000 (15:56 -0700)
committerDima Zavin <dima@android.com>
Tue, 23 Aug 2011 23:10:22 +0000 (16:10 -0700)
commit76594495616ae4080423f77cbbe1572d954edb29
treeaf850819c338d6d5fd3dd34a60c101702b38053f
parentcd1313b42474ea742981fc2f7d1a1a30f3e53e29
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