diff options
author | Rafael J. Wysocki <[email protected]> | 2014-07-10 23:37:54 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2014-07-15 12:57:26 +0200 |
commit | d709f7bcbb3ab01704fa7b37a2e4b981cf3783c1 (patch) | |
tree | fd952e3f4adbb790392a6ef3df06f1d4a2270459 /tools/perf/scripts/python/Perf-Trace-Util | |
parent | 4f808391df4ed5bea02519242710803df1ab040b (diff) |
PM / sleep / irq: Do not suspend wakeup interrupts
If an IRQ has been configured for wakeup via enable_irq_wake(), the
driver who has done that must be prepared for receiving interrupts
after suspend_device_irqs() has returned, so there is no need to
"suspend" such IRQs. Moreover, if drivers using enable_irq_wake()
actually want to receive interrupts after suspend_device_irqs() has
returned, they need to add IRQF_NO_SUSPEND to the IRQ flags while
requesting the IRQs, which shouldn't be necessary (it also goes a bit
too far, as IRQF_NO_SUSPEND causes the IRQ to be ignored by
suspend_device_irqs() all the time regardless of whether or not it
has been configured for signaling wakeup).
For the above reasons, make __disable_irq() ignore IRQ descriptors
with IRQD_WAKEUP_STATE set when its suspend argument is true which
effectively causes them to behave like IRQs with IRQF_NO_SUSPEND
set.
This also allows IRQs configured for wakeup via enable_irq_wake()
to work as wakeup interrupts for the "freeze" (suspend-to-idle)
sleep mode automatically just like for any other sleep states.
Signed-off-by: Rafael J. Wysocki <[email protected]>
Cc: Li Aubrey <[email protected]>
Cc: Dmitry Torokhov <[email protected]>
Cc: One Thousand Gnomes <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions