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)
commitbeed5336eba6a5a70c97e9f4bfff525915a25003
treecbc477bf6c3377da41c50a6d80c7218a4a589b6c
parentfed891c89bfd8ef898c2289b34e748969bb12798
vt,console,kdb: preserve console_blanked while in kdb

Commit b45cfba4e9005d64d419718e7ff7f7cab44c1994 (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