PM / Sleep: Look for wakeup events in later stages of device suspend
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 29 Apr 2012 20:52:19 +0000 (22:52 +0200)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 23 Jul 2012 08:35:21 +0000 (13:35 +0530)
commit70739784f09c496674e66f879217223ae811244b
tree447bc63acdc8bedfae3bc6d4dec44c7a7bc9d584
parent9352b0e4f5e7df2a0f7af26dacc3cf88dd1d573d
PM / Sleep: Look for wakeup events in later stages of device suspend

Currently, the device suspend code in drivers/base/power/main.c
only checks if there have been any wakeup events, and therefore the
ongoing system transition to a sleep state should be aborted, during
the first (i.e. "suspend") device suspend phase.  However, wakeup
events may be reported later as well, so it's reasonable to look for
them in the in the subsequent (i.e. "late suspend" and "suspend
noirq") phases.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/power/main.c