Web lists-archives.com

[PATCH] tracing: Hide power_domain_target trace event when not used




From: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>

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@xxxxxxxxxxx>
---
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