]> err.no Git - linux-2.6/commit
[PATCH] swsusp: fix suspend when console is in VT_AUTO+KD_GRAPHICS mode
authorAndrew Johnson <ajohnson@intrinsyc.com>
Fri, 16 Mar 2007 21:38:24 +0000 (13:38 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 17 Mar 2007 02:25:05 +0000 (19:25 -0700)
commitb257bc051f06607beb3004d9a1c297085e728bec
tree2eeb60429d92b683e9593d2fcde2f22ae40a1bf4
parent1174cf730179d8f029b9e93cb9a4d5bfb08d1202
[PATCH] swsusp: fix suspend when console is in VT_AUTO+KD_GRAPHICS mode

When the console is in VT_AUTO+KD_GRAPHICS mode, switching to the
SUSPEND_CONSOLE fails, resulting in vt_waitactive() waiting indefinitely or
until the task is interrupted.  This patch tests if a console switch can
occur in set_console() and returns early if a console switch is not
possible.

[akpm@linux-foundation.org: cleanup]
Signed-off-by: Andrew Johnson <ajohnson@intrinsyc.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/vt.c
drivers/char/vt_ioctl.c
include/linux/kbd_kern.h
include/linux/vt_kern.h
kernel/power/console.c