From: Steven Rostedt Date: Thu, 11 Oct 2012 15:14:14 +0000 (-0400) Subject: tracing: Have tracing_sched_wakeup_trace() use standard unlock_commit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b70e59043f5a5ec083ea50cd2640aa49c64c675;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Steven Rostedt --- diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c index 7e62c0a18456..b0a136ac382a 100644 --- a/kernel/trace/trace_sched_switch.c +++ b/kernel/trace/trace_sched_switch.c @@ -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