]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 29 Apr 2012 20:52:19 +0000 (22:52 +0200)
commit2d8be5a6ed4987709dc38dafa102b46451fb1385
tree5222dbdc466a5bf43d129110ebf89d673e3f32f2
parent47cdcdc2d0ead0c719a3967c4d55138982141bae
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