]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ftrace: move pc counter in irqtrace
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 2 Oct 2008 23:23:04 +0000 (19:23 -0400)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Oct 2008 08:39:16 +0000 (10:39 +0200)
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 <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_irqsoff.c

index f925dbbff2a6972fc75eb5a6fb30ae77095b632a..a7db7f040ae03bc3b3556b3f77e47f032be62c1d 100644 (file)
@@ -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 */