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

Commit 2b70e590 authored by Steven Rostedt's avatar Steven Rostedt Committed by Steven Rostedt
Browse files

tracing: Have tracing_sched_wakeup_trace() use standard unlock_commit



The functon tracing_sched_wakeup_trace() does an open coded unlock
commit and save stack. This is what the trace_nowake_buffer_unlock_commit()
is for.

Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 81698831
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -102,9 +102,7 @@ tracing_sched_wakeup_trace(struct trace_array *tr,
	entry->next_cpu			= task_cpu(wakee);

	if (!filter_check_discard(call, entry, buffer, event))
		ring_buffer_unlock_commit(buffer, event);
	ftrace_trace_stack(tr->buffer, flags, 6, pc);
	ftrace_trace_userstack(tr->buffer, flags, pc);
		trace_nowake_buffer_unlock_commit(buffer, event, flags, pc);
}

static void