]> git.karo-electronics.de Git - karo-tx-linux.git/commit
genirq: Add IRQF_RESUME_EARLY and resume such IRQs earlier
authorIan Campbell <ian.campbell@citrix.com>
Wed, 9 Nov 2011 08:53:09 +0000 (08:53 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 26 Nov 2011 17:10:36 +0000 (09:10 -0800)
commit5e87d8ee34e32fda720f3a4e4055f570b09230d6
tree899c805d2fecbe75440ed2296cfb5e859be9081e
parent9e1300a17346bdef3c4edabf1cb8135e52ffeb33
genirq: Add IRQF_RESUME_EARLY and resume such IRQs earlier

commit 9bab0b7fbaceec47d32db51cd9e59c82fb071f5a upstream

This adds a mechanism to resume selected IRQs during syscore_resume
instead of dpm_resume_noirq.

Under Xen we need to resume IRQs associated with IPIs early enough
that the resched IPI is unmasked and we can therefore schedule
ourselves out of the stop_machine where the suspend/resume takes
place.

This issue was introduced by 676dc3cf5bc3 "xen: Use IRQF_FORCE_RESUME".

Back ported to 2.6.32 (which lacks syscore support) by calling the relavant
resume function directly from sysdev_resume).

v2: Fixed non-x86 build errors.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Jeremy Fitzhardinge <Jeremy.Fitzhardinge@citrix.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Link: http://lkml.kernel.org/r/1318713254.11016.52.camel@dagon.hellion.org.uk
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/sys.c
drivers/xen/events.c
include/linux/interrupt.h
kernel/irq/pm.c