PM: cpufreq: powernv/tracing: Move powernv_throttle trace event
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 12 Jun 2025 14:53:11 +0000 (10:53 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 21 Jul 2025 20:40:56 +0000 (16:40 -0400)
commit647fe16b46999258ce1aec41f4bdeabb4f0cc8e7
tree82b87aadafd5f5aecfcbeaaa345e323b9e9eb5fe
parent06cc77a63f1b10e8f05e7223753883e14c35b512
PM: cpufreq: powernv/tracing: Move powernv_throttle trace event

As the trace event powernv_throttle is only used by the powernv code, move
it to a separate include file and have that code directly enable it.

Trace events can take up around 5K of memory when they are defined
regardless if they are used or not. It wastes memory to have them defined
in configurations where the tracepoint is not used.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/20250612145407.906308844@goodmis.org
Fixes: 0306e481d479a ("cpufreq: powernv/tracing: Add powernv_throttle tracepoint")
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
drivers/cpufreq/Makefile
drivers/cpufreq/powernv-cpufreq.c
drivers/cpufreq/powernv-trace.h [new file with mode: 0644]
include/trace/events/power.h
kernel/trace/power-traces.c