kernel_optimize_test/kernel/irq
Thomas Gleixner 9ce7a25849 genirq: Simplify wakeup mechanism
Currently we suspend wakeup interrupts by lazy disabling them and
check later whether the interrupt has fired, but that's not sufficient
for suspend to idle as there is no way to check that once we
transitioned into the CPU idle state.

So we change the mechanism in the following way:

1) Leave the wakeup interrupts enabled across suspend

2) Add a check to irq_may_run() which is called at the beginning of
   each flow handler whether the interrupt is an armed wakeup source.

   This check is basically free as it just extends the existing check
   for IRQD_IRQ_INPROGRESS. So no new conditional in the hot path.

   If the IRQD_WAKEUP_ARMED flag is set, then the interrupt is
   disabled, marked as pending/suspended and the pm core is notified
   about the wakeup event.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
[ rjw: syscore.c and put irq_pm_check_wakeup() into pm.c ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-09-01 13:48:59 +02:00
..
autoprobe.c
chip.c genirq: Simplify wakeup mechanism 2014-09-01 13:48:59 +02:00
debug.h
devres.c genirq: Add devm_request_any_context_irq() 2014-02-09 15:27:21 +01:00
dummychip.c
generic-chip.c genirq: generic chip: Export irq_map_generic_chip function 2014-07-17 13:30:00 +00:00
handle.c genirq: Export symbol no_action() 2014-03-22 11:33:09 +01:00
internals.h genirq: Simplify wakeup mechanism 2014-09-01 13:48:59 +02:00
irqdesc.c genirq: Fix memory leak when calling irq_free_hwirqs() 2014-07-05 21:42:08 +02:00
irqdomain.c genirq: Export irq_domain_disassociate() to architecture interrupt drivers 2014-06-21 23:03:36 +02:00
Kconfig genirq: Replace dynamic_irq_init/cleanup 2014-05-16 14:05:22 +02:00
Makefile
manage.c genirq: Add sanity checks for PM options on shared interrupt lines 2014-09-01 13:48:05 +02:00
migration.c
pm.c genirq: Simplify wakeup mechanism 2014-09-01 13:48:59 +02:00
proc.c genirq: procfs: Make smp_affinity values go+r 2014-03-19 12:34:29 +01:00
resend.c
settings.h
spurious.c genirq: Sanitize spurious interrupt detection of threaded irqs 2014-05-03 23:15:39 +02:00