This repository has been archived on 2026-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
ubports_kernel_google_msm/drivers
Rafael J. Wysocki 378eef99ad 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>
2011-03-15 00:43:13 +01:00
..
2011-03-03 11:53:25 -05:00
2011-01-13 08:03:09 -08:00
2011-03-13 15:35:59 -07:00
2011-01-20 21:37:29 +10:30
2011-03-02 10:57:50 +01:00
2011-03-10 14:41:51 -08:00
2011-01-12 04:59:44 -05:00
2011-02-28 12:06:20 -08:00
2011-02-01 16:48:46 +02:00