From 1b0e828d1e9a581d25695cfd991d62d632e290bd Mon Sep 17 00:00:00 2001 From: Satya Durga Srinivasu Prabhala Date: Thu, 27 Feb 2020 11:15:08 -0800 Subject: [PATCH] trace/sched: Fix compilation issues on !SMP Compilation fails on !SMP systems due to scheduler trace points. Fix the issue by making them available only on SMP system. Change-Id: Idedf12b6b0bb486184f06a8e9972bae677d9bc97 Signed-off-by: Satya Durga Srinivasu Prabhala --- include/trace/events/sched.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 0e92f30fa061..5f2ca2a7cbe3 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -903,6 +903,7 @@ DECLARE_TRACE(sched_overutilized_tp, TP_PROTO(struct root_domain *rd, bool overutilized), TP_ARGS(rd, overutilized)); +#ifdef CONFIG_SMP TRACE_EVENT(sched_cpu_util, TP_PROTO(int cpu), @@ -1108,6 +1109,7 @@ TRACE_EVENT(sched_find_best_target, __entry->most_spare_cap, __entry->target, __entry->backup) ); +#endif /* CONFIG_SMP */ /* * Tracepoint for system overutilized flag