summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/Makefile
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2011-01-31 11:06:50 +0100
committerRafael J. Wysocki <rjw@sisk.pl>2011-03-15 00:43:13 +0100
commit378eef99ad45700aabfba2bd962516e5608b259a (patch)
treed9a0d584495e5b6ee764b6d740cece46f3b5ed1d /drivers/clocksource/Makefile
parent023d3779145ec6b7a0f38f19672a347b92feb74e (diff)
PM / Wakeup: Make pm_save_wakeup_count() work as documented
According to Documentation/ABI/testing/sysfs-power, the /sys/power/wakeup_count interface should only make the kernel react to wakeup events during suspend if the last write to it has been successful. However, if /sys/power/wakeup_count is written to two times in a row, where the first write is successful and the second is not, the kernel will still react to wakeup events during suspend due to a bug in pm_save_wakeup_count(). Fix the bug by making pm_save_wakeup_count() clear events_check_enabled unconditionally before checking if there are any new wakeup events registered since the previous read from /sys/power/wakeup_count. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/clocksource/Makefile')
0 files changed, 0 insertions, 0 deletions