Skip to content

Commit

Permalink
ftrace: move pc counter in irqtrace
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
rostedt authored and Ingo Molnar committed Oct 14, 2008
1 parent aa1e0e3 commit 6450c1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/trace/trace_irqsoff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 6450c1d

Please sign in to comment.