]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PM / sleep: Report interrupt that caused system wakeup
authorAlexandra Yates <alexandra.yates@linux.intel.com>
Tue, 15 Sep 2015 17:32:46 +0000 (10:32 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 16 Sep 2015 12:20:41 +0000 (14:20 +0200)
commita6f5f0dd4e21191ce35030dd4d6421e1cca10ee4
treed11055309f1b697fe91aadaf327dace3412b31f1
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
PM / sleep: Report interrupt that caused system wakeup

Add a sysfs attribute, /sys/power/pm_wakeup_irq, reporting the IRQ
number of the first wakeup interrupt (that is, the first interrupt
from an IRQ line armed for system wakeup) seen by the kernel during
the most recent system suspend/resume cycle.

This feature will be useful for system wakeup diagnostics of
spurious wakeup interrupts.

Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
[ rjw: Fixed up pm_wakeup_irq definition ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/ABI/testing/sysfs-power
drivers/base/power/wakeup.c
include/linux/suspend.h
kernel/irq/pm.c
kernel/power/main.c