android_kernel_sony_sdm845/drivers/thermal
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Matthias Kaehlcke 56fc3de955 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: 6828a4711f ("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-01-29 10:24:24 +01:00
..
int340x_thermal thermal/int340x_thermal: fix mode setting 2019-04-20 09:07:48 +02:00
qcom drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER 2019-06-22 08:17:13 +02:00
samsung thermal: exynos: fix setting rising_threshold for Exynos5433 2018-08-03 07:55:23 +02:00
st
tegra
ti-soc-thermal
armada_thermal.c
clock_cooling.c
cpu_cooling.c thermal: cpu_cooling: Actually trace CPU load in thermal_power_cpu_get_power 2020-01-29 10:24:24 +01:00
db8500_cpufreq_cooling.c
db8500_thermal.c
devfreq_cooling.c
dove_thermal.c
fair_share.c
gov_bang_bang.c
hisi_thermal.c
imx_thermal.c
intel_bxt_pmic_thermal.c
intel_pch_thermal.c
intel_powerclamp.c
intel_quark_dts_thermal.c
intel_soc_dts_iosf.c
intel_soc_dts_iosf.h
intel_soc_dts_thermal.c x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:19:34 +02:00
Kconfig
kirkwood_thermal.c
Makefile
max77620_thermal.c
mtk_thermal.c thermal: mediatek: fix register index error 2020-01-29 10:24:14 +01:00
of-thermal.c thermal: of-thermal: disable passive polling when thermal zone is disabled 2018-10-03 17:01:51 -07:00
power_allocator.c
qcom-spmi-temp-alarm.c
qoriq_thermal.c
rcar_thermal.c thermal: rcar_thermal: Prevent hardware access during system suspend 2019-11-28 18:28:39 +01:00
rockchip_thermal.c
spear_thermal.c
step_wise.c
tango_thermal.c
thermal-generic-adc.c thermal: generic-adc: Fix adc to temp interpolation 2019-02-12 19:44:59 +01:00
thermal_core.c thermal: Fix deadlock in thermal thermal_zone_device_check 2019-12-21 10:41:43 +01:00
thermal_core.h
thermal_hwmon.c
thermal_hwmon.h thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set 2019-02-12 19:44:59 +01:00
user_space.c
x86_pkg_temp_thermal.c