android_kernel_samsung_a7y1.../drivers/thermal
Matthias Kaehlcke adb2e9f17e thermal: cpu_cooling: Actually trace CPU load in thermal_power_cpu_get_power
[ Upstream commit bf45ac18b78038e43af3c1a273cae4ab5704d2ce ]

The CPU load values passed to the thermal_power_cpu_get_power
tracepoint are zero for all CPUs, unless, unless the
thermal_power_cpu_limit tracepoint is enabled too:

  irq/41-rockchip-98    [000] ....   290.972410: thermal_power_cpu_get_power:
  cpus=0000000f freq=1800000 load={{0x0,0x0,0x0,0x0}} dynamic_power=4815

vs

  irq/41-rockchip-96    [000] ....    95.773585: thermal_power_cpu_get_power:
  cpus=0000000f freq=1800000 load={{0x56,0x64,0x64,0x5e}} dynamic_power=4959
  irq/41-rockchip-96    [000] ....    95.773596: thermal_power_cpu_limit:
  cpus=0000000f freq=408000 cdev_state=10 power=416

There seems to be no good reason for omitting the CPU load information
depending on another tracepoint. My guess is that the intention was to
check whether thermal_power_cpu_get_power is (still) enabled, however
'load_cpu != NULL' already indicates that it was at least enabled when
cpufreq_get_requested_power() was entered, there seems little gain
from omitting the assignment if the tracepoint was just disabled, so
just remove the check.

Fixes: 6828a4711f99 ("thermal: add trace events to the power allocator governor")
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Javi Merino <javi.merino@kernel.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 13:41:59 +02:00
..
int340x_thermal thermal/int340x_thermal: fix mode setting 2020-04-06 15:17:09 +02:00
samsung A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
st A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ti-soc-thermal A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
armada_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
clock_cooling.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpu_cooling.c thermal: cpu_cooling: Actually trace CPU load in thermal_power_cpu_get_power 2020-04-07 13:41:59 +02:00
db8500_cpufreq_cooling.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
db8500_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
devfreq_cooling.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dove_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fair_share.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gov_bang_bang.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gpu_cooling.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hisi_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
imx_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
intel_pch_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
intel_powerclamp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
intel_quark_dts_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
intel_soc_dts_iosf.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
intel_soc_dts_iosf.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
intel_soc_dts_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
isp_cooling.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kirkwood_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
of-thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
power_allocator.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
qcom-spmi-temp-alarm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rcar_thermal.c thermal: rcar_thermal: Prevent hardware access during system suspend 2020-04-07 12:35:31 +02:00
rockchip_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
spear_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
step_wise.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tegra_soctherm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
thermal_core.c thermal: Fix deadlock in thermal thermal_zone_device_check 2020-04-07 12:46:09 +02:00
thermal_core.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
thermal_hwmon.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
thermal_hwmon.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
user_space.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
x86_pkg_temp_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30