[1/5] powerpc: ftrace, do not latency trace idle

Submitted by Steven Rostedt on Nov. 20, 2008, 7:09 p.m.


Message ID 20081120191149.086287646@goodmis.org
State Not Applicable, archived
Headers show

Commit Message

Steven Rostedt Nov. 20, 2008, 7:09 p.m.
From: Steven Rostedt <srostedt@redhat.com>

Impact: fix for irq off latency tracer

When idle is called, interrupts are disabled, but the idle function
will still wake up on an interrupt. The problem is that the interrupt
disabled latency tracer will take this call to idle as a latency.

This patch disables the latency tracing when going into idle.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
 arch/powerpc/kernel/idle.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/arch/powerpc/kernel/idle.c b/arch/powerpc/kernel/idle.c
index 31982d0..88d9c1d 100644
--- a/arch/powerpc/kernel/idle.c
+++ b/arch/powerpc/kernel/idle.c
@@ -69,10 +69,15 @@  void cpu_idle(void)
+				/* Don't trace irqs off for idle */
+				stop_critical_timings();
 				/* check again after disabling irqs */
 				if (!need_resched() && !cpu_should_die())
+				start_critical_timings();