Skip to content

Commit dd4186c

Browse files
committed
PM: tracing: Hide power_domain_target event under ARCH_OMAP2PLUS
The power_domain_target event event is only called when CONFIG_OMAP2PLUS is defined. As each event can take up to 5K regardless if they are used or not, it's best not to define them when they are not used. Add #ifdef around these events when they are not used. Cc: Masami Hiramatsu <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Viresh Kumar <[email protected]> Cc: Madhavan Srinivasan <[email protected]> Cc: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/[email protected] Acked-by: Rafael J. Wysocki <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent e688490 commit dd4186c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/trace/events/power.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ DEFINE_EVENT(wakeup_source, wakeup_source_deactivate,
319319
TP_ARGS(name, state)
320320
);
321321

322+
#ifdef CONFIG_ARCH_OMAP2PLUS
322323
/*
323324
* The power domain events are used for power domains transitions
324325
*/
@@ -350,6 +351,7 @@ DEFINE_EVENT(power_domain, power_domain_target,
350351

351352
TP_ARGS(name, state, cpu_id)
352353
);
354+
#endif
353355

354356
/*
355357
* CPU latency QoS events used for global CPU latency QoS list updates

0 commit comments

Comments
 (0)