[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <53849167.1000309@mvista.com>
Date: Tue, 27 May 2014 08:21:43 -0500
From: Corey Minyard <cminyard@...sta.com>
To: Arnd Bergmann <arnd@...db.de>, linux-arm-kernel@...ts.infradead.org
CC: minyard@....org, linux-rt-users@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] arm: Set hardirq tracing to on when idling
On 05/26/2014 04:26 AM, Arnd Bergmann wrote:
> On Sunday 25 May 2014 14:15:23 minyard@....org wrote:
>> From: Corey Minyard <cminyard@...sta.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@...sta.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.
> If this patch is correct for ARM, I wonder if it should be done
> in architecture independent code instead. Do you see the same
> thing on x86? If not, do you know what's different?
MIPS doesn't idle with IRQs disabled.
x86 calls trace_cpu_idle_rcuidle, but it doesn't re-enable interrupts at
the end of the idle routine. Adding those trace calls to ARM doesn't
seem to make any difference, though.
> It seems like the right thing to do, I just don't understand
> why nobody hit this before.
Yeah, I'm a little confused by that, too. The RT guys use ARM
extensively, why haven't they seen this? Of course, if you run your RT
tests under heavy load, you won't see this since you will never go idle.
-corey
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists