Subject: [PATCH 9/9] tracing: Use preempt_model_str().
From: Sebastian Andrzej Siewior <[email-masked]>
Date: Fri, 14 Mar 2025 17:08:10 +0100

Use preempt_model_str() instead of manually conducting the preemption
model.

Cc: Steven Rostedt <[email-masked]>
Cc: Masami Hiramatsu <[email-masked]>
Cc: Mathieu Desnoyers <[email-masked]>
Cc: [email-masked]
Acked-by: Steven Rostedt (Google) <[email-masked]>
Link: https://lore.kernel.org/r/[email-masked]
Signed-off-by: Sebastian Andrzej Siewior <[email-masked]>
---
 kernel/trace/trace.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -4100,12 +4100,7 @@ print_trace_header(struct seq_file *m, s
 		   entries,
 		   total,
 		   buf->cpu,
-		   preempt_model_none()      ? "server" :
-		   preempt_model_voluntary() ? "desktop" :
-		   preempt_model_full()      ? "preempt" :
-		   preempt_model_lazy()	     ? "lazy"    :
-		   preempt_model_rt()        ? "preempt_rt" :
-		   "unknown",
+		   preempt_model_str(),
 		   /* These are reserved for later use */
 		   0, 0, 0, 0);
 #ifdef CONFIG_SMP