[PATCH] swsusp: add check for suspension of X-controlled devices
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 23 Mar 2006 11:00:07 +0000 (03:00 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 23 Mar 2006 15:38:08 +0000 (07:38 -0800)
commitff4da2e262d2509fe1bacff70dd00934be569c66
tree1e171f1858be98f4a7c6ea3f92358b692dab44dc
parente4e4d665560c75afb6060cb43bb6738777648ca1
[PATCH] swsusp: add check for suspension of X-controlled devices

It is unsafe to suspend devices if the hardware is controlled by X.  Add an
extra check to prevent this from happening.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
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