Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6450c1d3 authored by Steven Rostedt's avatar Steven Rostedt Committed by Ingo Molnar
Browse files

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: default avatarSteven Rostedt <srostedt@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent aa1e0e3b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 */