Skip to content

Commit

Permalink
APM emulation: Notify about all suspend events, not just APM invoked …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Johannes Berg authored and Andi Kleen committed Jul 16, 2008
1 parent 741438b commit d20a4dc
Showing 1 changed file with 207 additions and 139 deletions.
Loading

0 comments on commit d20a4dc

Please sign in to comment.