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

Commit 1b0e828d authored by Satya Durga Srinivasu Prabhala's avatar Satya Durga Srinivasu Prabhala
Browse files

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: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent a5951a22
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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