PM / Wakeup: Don't update events_check_enabled in pm_get_wakeup_count()
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 31 Jan 2011 10:07:01 +0000 (11:07 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 14 Mar 2011 23:43:14 +0000 (00:43 +0100)
commit790c7885a4b2105e41f7a80b035fdb78e406154f
treedd0e725335ffe47ebd940f04cbd44db88a39759d
parent378eef99ad45700aabfba2bd962516e5608b259a
PM / Wakeup: Don't update events_check_enabled in pm_get_wakeup_count()

Since pm_save_wakeup_count() has just been changed to clear
events_check_enabled unconditionally before checking if there are
any new wakeup events registered since the last read from
/sys/power/wakeup_count, the detection of wakeup events during
suspend may be disabled, after it's been enabled, by writing a
"wrong" value back to /sys/power/wakeup_count.  For this reason,
it is not necessary to update events_check_enabled in
pm_get_wakeup_count() any more.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/wakeup.c