]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/gic: Add save/restore of the active state
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 16 Nov 2015 19:13:28 +0000 (19:13 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 17 Nov 2015 13:25:59 +0000 (14:25 +0100)
commit52004d96fab8f93fb01bb922299e1ca818c1d6e0
tree91c74527ad3a1041a33af93b2420fa95630685cd
parent9f2ce2c5d47afb83197d43689a343019b91bce99
irqchip/gic: Add save/restore of the active state

When using EOImode==1, we may mark interrupts as being forwarded
to a virtual machine. In that case, the interrupt is left active
while being passed to the VM.

If we suspend the system before the VM has deactivated the interrupt,
the active state will be lost (which may be very annoying, as this
may result in spurious interrupts and a confused guest).

To avoid this, save and restore the active state together with the
rest of the GIC registers.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: <linux-arm-kernel@lists.infradead.org>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Russell King <linux@arm.linux.org.uk>
Link: http://lkml.kernel.org/r/1447701208-18150-5-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-gic.c