From: Marc Zyngier Date: Fri, 6 Mar 2015 16:37:44 +0000 (+0000) Subject: irqchip: gic: Fix unsafe locking reported by lockdep X-Git-Tag: omap-for-v4.1/wl12xx-dt~10^2^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf613871946230c5dd8178d07bcdc2984f4545cd;p=pandora-kernel.git irqchip: gic: Fix unsafe locking reported by lockdep When compiled with CONFIG_LOCKDEP, the kernel shouts badly, saying that the locking in the GIC code is unsafe. I'm afraid the kernel is right: CPU0 ---- lock(irq_controller_lock); lock(irq_controller_lock); *** DEADLOCK *** This can happen while enabling, disabling, setting the type or the affinity of an interrupt. The fix is to take the interrupt_controller_lock with interrupts disabled in these cases. Signed-off-by: Marc Zyngier Link: https://lkml.kernel.org/r/1425659870-11832-6-git-send-email-marc.zyngier@arm.com Signed-off-by: Jason Cooper --- Reading git-diff-tree failed