From: Steven Rostedt (VMware) <[email protected]> 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) <[email protected]> --- 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

