From: Steven Rostedt Date: Thu, 2 Oct 2008 23:23:04 +0000 (-0400) Subject: ftrace: move pc counter in irqtrace X-Git-Tag: v2.6.28-rc1~78^2~19 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6450c1d3213e27b0dcbf34cce7ad1ae74244c520;p=linux-2.6-omap-h63xx.git ftrace: move pc counter in irqtrace The assigning of the pc counter is in the wrong spot in the check_critical_timing function. The pc variable is used in the out jump. Signed-off-by: Steven Rostedt Signed-off-by: Ingo Molnar --- diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.c index f925dbbff2a..a7db7f040ae 100644 --- a/kernel/trace/trace_irqsoff.c +++ b/kernel/trace/trace_irqsoff.c @@ -142,11 +142,11 @@ check_critical_timing(struct trace_array *tr, local_save_flags(flags); + pc = preempt_count(); + if (!report_latency(delta)) goto out; - pc = preempt_count(); - spin_lock_irqsave(&max_trace_lock, flags); /* check if we are still the max latency */