[PATCH] arm: Set hardirq tracing to on when idling
minyard at acm.org
minyard at acm.org
Sun May 25 12:15:23 PDT 2014
From: Corey Minyard <cminyard at mvista.com>
The CPU will go to idle with interrupts off, but the interrupts
will wake up the idle. This was causing very long irqsoff trace
values because, basically, the whole idle time was traces with
irqs off, even though they weren't really off. Rework the idle
code to turn hardirq tracing to on befor calling idle.
Signed-off-by: Corey Minyard <cminyard at mvista.com>
---
arch/arm/kernel/process.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
I'm not sure this is correct for all ARM boards, but it fixes the
issue for the Vexpress board I have. No more 4 second irqsoff
times.
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index 1ca6cf1..92413af 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -133,11 +133,12 @@ void (*arm_pm_idle)(void);
static void default_idle(void)
{
+ trace_hardirqs_on();
if (arm_pm_idle)
arm_pm_idle();
else
cpu_do_idle();
- local_irq_enable();
+ raw_local_irq_enable();
}
void arch_cpu_idle_prepare(void)
--
1.8.3.1
More information about the linux-arm-kernel
mailing list