From: Andrew Johnson Date: Fri, 16 Mar 2007 21:38:24 +0000 (-0800) Subject: [PATCH] swsusp: fix suspend when console is in VT_AUTO+KD_GRAPHICS mode X-Git-Tag: v2.6.21-rc5~89 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b257bc051f06607beb3004d9a1c297085e728bec;p=pandora-kernel.git [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 Acked-by: Pavel Machek Cc: "Antonino A. Daplas" Cc: "Rafael J. Wysocki" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed