Re: [PATCH v1 01/11] thermal/core: Relocate the traces definition in thermal directory

From: Steven Rostedt
Date: Tue Mar 07 2023 - 10:52:18 EST


On Tue, 7 Mar 2023 14:37:25 +0100
Daniel Lezcano <daniel.lezcano@xxxxxxxxxx> wrote:

> 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@xxxxxxxxxxx>
> Suggested-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>

Reviewed-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>

-- Steve

> ---
> drivers/thermal/Makefile | 3 ++-
> drivers/thermal/cpufreq_cooling.c | 2 +-
> drivers/thermal/devfreq_cooling.c | 2 +-
> drivers/thermal/gov_fair_share.c | 2 +-
> drivers/thermal/gov_power_allocator.c | 2 +-
> drivers/thermal/gov_step_wise.c | 2 +-
> drivers/thermal/thermal_core.c | 2 +-
> drivers/thermal/thermal_helpers.c | 3 +--
> .../events/thermal.h => drivers/thermal/thermal_trace.h | 6 ++++++
> .../thermal/thermal_trace_ipa.h | 6 ++++++
> 10 files changed, 21 insertions(+), 9 deletions(-)
> rename include/trace/events/thermal.h => drivers/thermal/thermal_trace.h (97%)
> rename include/trace/events/thermal_power_allocator.h => drivers/thermal/thermal_trace_ipa.h (96%)