From: Benjamin Herrenschmidt Date: Thu, 10 May 2012 16:12:38 +0000 (+0000) Subject: powerpc/irq: Fix another case of lazy IRQ state getting out of sync X-Git-Tag: v3.4-rc7~8^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c0482e3d055e5de056d3c693b821e39205b99ae;p=pandora-kernel.git powerpc/irq: Fix another case of lazy IRQ state getting out of sync So we have another case of paca->irq_happened getting out of sync with the HW irq state. This can happen when a perfmon interrupt occurs while soft disabled, as it will return to a soft disabled but hard enabled context while leaving a stale PACA_IRQ_HARD_DIS flag set. This patch fixes it, and also adds a test for the condition of those flags being out of sync in arch_local_irq_restore() when CONFIG_TRACE_IRQFLAGS is enabled. This helps catching those gremlins faster (and so far I can't seem see any anymore, so that's good news). Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed