thermal/core: Relocate the traces definition in thermal directory
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 7 Mar 2023 13:37:25 +0000 (14:37 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sat, 1 Apr 2023 18:51:45 +0000 (20:51 +0200)
commit32a7a02117de01199ce15ec121ac7af417c340eb
treebeef3c9af6675625b96fdcce747f08f81246daca
parente45c9a2fc59da2d5f8004ce1e6894cd5d74788e3
thermal/core: Relocate the traces definition in thermal directory

The traces are exported but only local to the thermal core code. On
the other side, the traces take the thermal zone device structure as
argument, thus they have to rely on the exported thermal.h header
file. As we want to move the structure to the private thermal core
header, first we have to relocate those traces to the same place as
many drivers do.

Cc: Steven Rostedt <rostedt@goodmis.org>
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20230307133735.90772-2-daniel.lezcano@linaro.org
drivers/thermal/Makefile
drivers/thermal/cpufreq_cooling.c
drivers/thermal/devfreq_cooling.c
drivers/thermal/gov_fair_share.c
drivers/thermal/gov_power_allocator.c
drivers/thermal/gov_step_wise.c
drivers/thermal/thermal_core.c
drivers/thermal/thermal_helpers.c
drivers/thermal/thermal_trace.h [moved from include/trace/events/thermal.h with 97% similarity]
drivers/thermal/thermal_trace_ipa.h [moved from include/trace/events/thermal_power_allocator.h with 96% similarity]