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

Commit 49f575e2 authored by Jeevan Shriram's avatar Jeevan Shriram
Browse files

sched: protect SMP specific traces with CONFIG_SMP



For Single core architectures, CONFIG_SMP is not defined. To avoid
compilation failure, protect scheduler SMP specific traces with
CONFIG_SMP.

Change-Id: Icb12ac4e378e8254707c08b07d596c96884975b7
Signed-off-by: default avatarJeevan Shriram <jshriram@codeaurora.org>
parent ad58f2b4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1323,6 +1323,7 @@ TRACE_EVENT(sched_contrib_scale_f,
		  __entry->cpu_scale_factor)
);

#ifdef CONFIG_SMP
/*
 * Tracepoint for accounting sched averages for tasks.
 */
@@ -1582,6 +1583,7 @@ TRACE_EVENT(sched_overutilized,
	TP_printk("overutilized=%d",
		__entry->overutilized ? 1 : 0)
);
#endif

TRACE_EVENT(sched_get_nr_running_avg,