summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-cmos.c
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2012-05-09 23:08:43 (GMT)
committerRafael J. Wysocki <rjw@sisk.pl>2012-05-29 19:20:23 (GMT)
commitc10d7a13846bffa5c77f1122500b687ab902e2d2 (patch)
tree0ccc77e7931cb6bda11cc4d24caaebf5aea28246 /drivers/rtc/rtc-cmos.c
parent76e10d158efb6d4516018846f60c2ab5501900bc (diff)
downloadlinux-c10d7a13846bffa5c77f1122500b687ab902e2d2.tar.xz
ACPI / PM: Generate wakeup events on fixed power button
When the system is woken up by the ACPI fixed power button, currently there is no way of userspace becoming aware that the power button was pressed. OLPC would like to know this, so that we can respond appropriately. For example, if the system was woken up by a network packet, we know we can go back to sleep very quickly. But if the user explicitly woke the system with the power button, we're going to want to stay awake for a while. The wakeup count mechanism seems like a good fit for communicating this. Mark the fixed power button as wakeup-enabled, and increment its wakeup counter when the system is woken with the power button. (The wakeup counter is also incremented when the power button is pressed during system operation; this is already handled by an existing acpi-button codepath). Signed-off-by: Daniel Drake <dsd@laptop.org> Acked-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/rtc/rtc-cmos.c')
0 files changed, 0 insertions, 0 deletions