]> git.baikalelectronics.ru Git - kernel.git/commit
APM emulation: Notify about all suspend events, not just APM invoked ones (v2)
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 11 Jun 2008 20:03:10 +0000 (22:03 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Wed, 16 Jul 2008 21:27:02 +0000 (23:27 +0200)
commit68ef433f07869b19cfb11d130adf705a1ef93034
treee84092f7e9dad9857a6997317bcc9399639a10a9
parent39d31a29fab0f8e5c77efbafc87a40924f37dae2
APM emulation: Notify about all suspend events, not just APM invoked ones (v2)

This revamps the apm-emulation code to get suspend notifications
regardless of what way pm_suspend() was invoked, whether via the
apm ioctl or via /sys/power/state. Also do some code cleanup and
add comments while at it.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/char/apm-emulation.c