[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20171012182501.72a501c1@gandalf.local.home>
Date: Thu, 12 Oct 2017 18:25:01 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Ingo Molnar <mingo@...nel.org>, Jean Pihet <j-pihet@...com>,
Kevin Hilman <khilman@...com>
Subject: [PATCH] tracing: Hide power_domain_target trace event when not used
From: Steven Rostedt (VMware) <rostedt@...dmis.org>
The power_domain_target trace event is only used by the ARM OMAP2
platform. Defining events when they are not used wastes memory. Until
there are other users of the power_domain_target trace event,
encapsulate it with #ifdef CONFIG_ARM_OMAP2
Signed-off-by: Steven Rostedt (VMware) <rostedt@...dmis.org>
---
Index: linux-trace.git/include/trace/events/power.h
===================================================================
--- linux-trace.git.orig/include/trace/events/power.h
+++ linux-trace.git/include/trace/events/power.h
@@ -253,6 +253,7 @@ DEFINE_EVENT(wakeup_source, wakeup_sourc
TP_ARGS(name, state)
);
+#ifdef CONFIG_ARCH_OMAP2
/*
* The power domain events are used for power domains transitions
*/
@@ -284,6 +285,7 @@ DEFINE_EVENT(power_domain, power_domain_
TP_ARGS(name, state, cpu_id)
);
+#endif
/*
* The pm qos events are used for pm qos update
Powered by blists - more mailing lists