summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorPatrick Bellasi <patrick.bellasi@arm.com>2016-07-22 11:35:59 +0100
committerAmit Pundir <amit.pundir@linaro.org>2016-09-14 14:59:32 +0530
commitf0ba6a5d0c42e689bab7ed76738ac13046e7bd1a (patch)
tree50b25994d530eefea8400db0afb7e972b36a04d8 /include/trace
parent13a60dc148bd6646e09349a2d424e65c8c30c195 (diff)
FIXUP: sched: fix build for non-SMP target
Currently the build for a single-core (e.g. user-mode) Linux is broken and this configuration is required (at least) to run some network tests. The main issues for the current code support on single-core systems are: 1. {se,rq}::sched_avg is not available nor maintained for !SMP systems This means that load and utilisation signals are NOT available in single core systems. All the EAS code depends on these signals. 2. sched_group_energy is also SMP dependant. Again this means that all the EAS setup and preparation code (energyn model initialization) has to be properly guarded/disabled for !SMP systems. 3. SchedFreq depends on utilization signal, which is not available on !SMP systems. 4. SchedTune is useless on unicore systems if SchedFreq is not available. 5. WALT machinery is not required on single-core systems. This patch addresses all these issues by enforcing some constraints for single-core systems: a) WALT, SchedTune and SchedTune are now dependant on SMP b) The default governor for !SMP systems is INTERACTIVE c) The energy model initialisation/build functions are d) Other minor code re-arrangements and CONFIG_SMP guarding to enable single core builds. Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/sched.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h
index abbfaeedd3ae..11898fb48c01 100644
--- a/include/trace/events/sched.h
+++ b/include/trace/events/sched.h
@@ -636,6 +636,8 @@ TRACE_EVENT(sched_contrib_scale_f,
__entry->cpu_scale_factor)
);
+#ifdef CONFIG_SMP
+
/*
* Tracepoint for accounting sched averages for tasks.
*/
@@ -935,6 +937,8 @@ TRACE_EVENT(sched_tune_filter,
__entry->payoff, __entry->region)
);
+#endif /* CONFIG_SMP */
+
#endif /* _TRACE_SCHED_H */
/* This part must be outside protection */