ARM: tegra: flush console before reboot
authorDima Zavin <dima@android.com>
Thu, 11 Nov 2010 23:28:46 +0000 (15:28 -0800)
committerDima Zavin <dima@android.com>
Fri, 12 Nov 2010 01:40:47 +0000 (17:40 -0800)
commitdf05ccfa78ff88a15bdf0b7b615292b9149f199a
treeb8374a9e5f029e8f730da84b79f551436d621fde
parent240db6a5cb4b846c255e0ae999f406610ab0156c
ARM: tegra: flush console before reboot

If the console_sem 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 sem if it failed to be acquired.

Change-Id: I6eba9d744ef41209d26328a17c7ae19c32d6e8cb
Signed-off-by: Dima Zavin <dima@android.com>
arch/arm/mach-tegra/common.c