Skip to content

Commit 3bffa47

Browse files
Sebastian Andrzej SiewiorPeter Zijlstra
authored andcommitted
tracing: Use preempt_model_str()
Use preempt_model_str() instead of manually conducting the preemption model. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: "Steven Rostedt (Google)" <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6966cd4 commit 3bffa47

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

kernel/trace/trace.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4100,12 +4100,7 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter)
41004100
entries,
41014101
total,
41024102
buf->cpu,
4103-
preempt_model_none() ? "server" :
4104-
preempt_model_voluntary() ? "desktop" :
4105-
preempt_model_full() ? "preempt" :
4106-
preempt_model_lazy() ? "lazy" :
4107-
preempt_model_rt() ? "preempt_rt" :
4108-
"unknown",
4103+
preempt_model_str(),
41094104
/* These are reserved for later use */
41104105
0, 0, 0, 0);
41114106
#ifdef CONFIG_SMP

0 commit comments

Comments
 (0)