drivers/thermal/cpufreq_cooling : Refactor thermal_power_cpu_get_power tracing
authorLukasz Luba <lukasz.luba@arm.com>
Mon, 13 Jun 2022 12:43:25 +0000 (13:43 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 28 Jul 2022 15:29:42 +0000 (17:29 +0200)
commit3f7ced7ac9af43fbc0b886aa9ef4397a5fa4b6e1
treea417fbaf45b58420e6aac67a0768b38531e22679
parent3cbf6a8ab70b21de75bc389d384911392cf7f616
drivers/thermal/cpufreq_cooling : Refactor thermal_power_cpu_get_power tracing

Simplify the thermal_power_cpu_get_power trace event by removing
complicated cpumask and variable length array. Now the tools parsing trace
output don't have to hassle to get this power data. The simplified format
version uses 'policy->cpu'. Remove also the 'load' information completely
since there is very little value of it in this trace event. To get the
CPUs' load (or utilization) there are other dedicated trace hooks in the
kernel. This patch also simplifies and speeds-up the main cooling code
when that trace event is enabled.

Rename the trace event to avoid confusion of tools which parse the trace
file.

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://lore.kernel.org/r/20220613124327.30766-3-lukasz.luba@arm.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/cpufreq_cooling.c
include/trace/events/thermal.h