diff options
| author | Amit Nischal <anischal@codeaurora.org> | 2017-02-10 18:28:34 +0530 |
|---|---|---|
| committer | Amit Nischal <anischal@codeaurora.org> | 2017-02-10 18:59:48 +0530 |
| commit | ca6532efe28b554581d9d10836582c3ea56b42ea (patch) | |
| tree | 884662939af124d6e528d41e02da62385750310b /include | |
| parent | 9c9289f6002c01216e976a8f843c8e47b4cdef56 (diff) | |
tracing: Add clock trace events only for COMMON_CLK_MSM
Clock trace events related to msm clock framework are
not required to be part of available events other that
CLK_MSM config so add the support for the same by
adding a config check.
Change-Id: I93e8d9604a58c0cb48be723d5845591e7a4b7861
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/trace/events/power.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/trace/events/power.h b/include/trace/events/power.h index 8387688fb71b..19136453a5e2 100644 --- a/include/trace/events/power.h +++ b/include/trace/events/power.h @@ -304,6 +304,7 @@ DEFINE_EVENT(wakeup_source, wakeup_source_deactivate, * The clock events are used for clock enable/disable and for * clock rate change */ +#if defined(CONFIG_COMMON_CLK_MSM) DECLARE_EVENT_CLASS(clock, TP_PROTO(const char *name, unsigned int state, unsigned int cpu_id), @@ -401,6 +402,7 @@ TRACE_EVENT(clock_state, __get_str(name), __entry->prepare_count, __entry->count, __entry->rate, __entry->vdd_level) ); +#endif /* CONFIG_COMMON_CLK_MSM */ /* * The power domain events are used for power domains transitions |
