From: Johannes Berg Date: Wed, 11 Jun 2008 20:03:10 +0000 (+0200) Subject: APM emulation: Notify about all suspend events, not just APM invoked ones (v2) X-Git-Tag: v2.6.27-rc1~1050^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d20a4dca47d2cd027ed58a13f91b424affd1f449;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki Signed-off-by: Len Brown Signed-off-by: Andi Kleen --- Reading git-diff-tree failed