From b6f137ab06e63f2323d102c562a7381000a76bd2 Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Tue, 29 Apr 2014 12:30:42 -0700 Subject: [PATCH] ARM: gic: Add support for logging interrupts in RTB To help with the debug of interrupt storms and problems during IRQ handling, log the IRQ number in RTB for each interrupt that fires. Change-Id: Icea5ded0f7d66ba3c7608793e7c25218e2a64e0c Signed-off-by: Subbaraman Narayanamurthy [abhimany: resolve trivial merge conflicts] Signed-off-by: Abhimanyu Kapur [aiquny: resolve trivial merge conflicts] Signed-off-by: Maria Yu --- drivers/irqchip/irq-gic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index d557e4664925..7a32be261a79 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include @@ -365,6 +366,7 @@ static void __exception_irq_entry gic_handle_irq(struct pt_regs *regs) writel_relaxed(irqstat, cpu_base + GIC_CPU_EOI); isb(); handle_domain_irq(gic->domain, irqnr, regs); + uncached_logk(LOGK_IRQ, (void *)(uintptr_t)irqnr); continue; } if (irqnr < 16) { @@ -382,6 +384,7 @@ static void __exception_irq_entry gic_handle_irq(struct pt_regs *regs) smp_rmb(); handle_IPI(irqnr, regs); #endif + uncached_logk(LOGK_IRQ, (void *)(uintptr_t)irqnr); continue; } break;