]> git.baikalelectronics.ru Git - kernel.git/commit
vt,console,kdb: preserve console_blanked while in kdb
authorJason Wessel <jason.wessel@windriver.com>
Mon, 16 Aug 2010 20:58:31 +0000 (15:58 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Mon, 16 Aug 2010 20:58:31 +0000 (15:58 -0500)
commit3bb03801fd6d7f70083f36b14f1ddb1fae1c2937
treecbc477bf6c3377da41c50a6d80c7218a4a589b6c
parent5fd6f4b028bb8a4abdeddd1735e2243a257d6801
vt,console,kdb: preserve console_blanked while in kdb

Commit 7eb7310243af08b5bc5d01128f6af8eab471f07e (vt,console,kdb:
implement atomic console enter/leave functions) introduced the ability
to atomically change the console mode with kernel mode setting but did
not preserve the state of the console_blanked variable.

The console_blanked variable must be restored when executing the
con_debug_leave() or further kernel mode set changes (such as using
chvt X) will fail to correctly set the state of console.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
CC: Andrew Morton <akpm@linux-foundation.org>
drivers/char/vt.c