[PATCH] revert "swsusp add check for suspension of X controlled devices"
commit760f1fce030ccc620ec430a8aff8fc604e7891ed
authorAndrew Morton <akpm@osdl.org>
Wed, 31 May 2006 04:26:03 +0000 (30 21:26 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 31 May 2006 23:27:11 +0000 (31 16:27 -0700)
treed2e14b5c6d101e4b368300d2a7e6c6fd438133a8
parentd61a3ead268084cc271d7b2aa2950fc822a37cf5
[PATCH] revert "swsusp add check for suspension of X controlled devices"

From: Andrew Morton <akpm@osdl.org>

Revert commit ff4da2e262d2509fe1bacff70dd00934be569c66.

It broke APM suspend, probably because APM doesn't switch back to a VT
when suspending.

Tracked down by Matt Mackall <mpm@selenic.com>

Rafael sayeth:
  "It only fixed the theoretical issue that a quick-handed user could
   switch to X after processes have been frozen and before the devices
   are suspended.

   With the current userland suspend tools it shouldn't be necessary."

Cc: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/base/power/suspend.c
drivers/char/vt.c
include/linux/vt_kern.h