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

Commit ca6532ef authored by Amit Nischal's avatar Amit Nischal
Browse files

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: default avatarAmit Nischal <anischal@codeaurora.org>
parent 9c9289f6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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