kernel_optimize_test/drivers/thermal
Matthias Kaehlcke bf45ac18b7 thermal: cpu_cooling: Actually trace CPU load in thermal_power_cpu_get_power
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>
2019-05-14 07:00:41 -07:00
..
broadcom thermal: broadcom: Remove ACPI support 2019-05-14 07:00:37 -07:00
intel Merge branches 'fixes' and 'thermal-intel' into next 2019-03-18 22:37:44 +08:00
qcom drivers: thermal: tsens: Move calibration constants to header file 2019-05-14 07:00:23 -07:00
samsung thermal: samsung: Fix incorrect check after code merge 2019-03-18 22:11:06 +08:00
st thermal: stm32: simplify getting .driver_data 2019-05-13 20:35:35 -07:00
tegra drivers: thermal: Kconfig: pedantic cleanups 2019-05-13 20:35:34 -07:00
ti-soc-thermal thermal: ti-soc-thermal: remove dead code 2018-07-27 14:43:01 -07:00
armada_thermal.c Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal 2019-01-05 16:01:16 -08:00
clock_cooling.c thermal: convert clock cooling to use an IDA 2017-01-04 12:47:28 +08:00
cpu_cooling.c thermal: cpu_cooling: Actually trace CPU load in thermal_power_cpu_get_power 2019-05-14 07:00:41 -07:00
da9062-thermal.c thermal: da9062/61: Prevent hardware access during system suspend 2018-10-25 10:44:55 -07:00
db8500_thermal.c thermal: db8500: Fix module autoload 2016-11-23 10:07:35 +08:00
devfreq_cooling.c trace: thermal: add another parameter 'power' to the tracing function 2017-05-05 15:54:45 +08:00
dove_thermal.c
fair_share.c thermal: fix source code documentation for parameters 2017-06-29 10:46:31 +08:00
gov_bang_bang.c thermal: bang-bang governor: act on lower trip boundary 2016-09-27 14:02:16 +08:00
hisi_thermal.c thermal/drivers/hisi: Fix number of sensors on hi3660 2018-12-10 20:13:09 -08:00
imx_thermal.c thermal: imx: save one condition block for normal case of nvmem initialization 2019-01-02 04:47:12 -08:00
Kconfig thermal: Fix build error of missing devm_ioremap_resource on UM 2019-05-14 07:00:36 -07:00
kirkwood_thermal.c
Makefile thermal: Introduce Amazon's Annapurna Labs Thermal Driver 2019-05-14 07:00:26 -07:00
max77620_thermal.c thermal: max77620: fix pinmux conflict on reprobe 2017-06-13 11:07:32 +02:00
mtk_thermal.c thermal: mtk: Allocate enough space for mtk_thermal. 2019-03-18 22:23:10 +08:00
of-thermal.c of: thermal: Improve print information 2019-05-13 20:35:34 -07:00
power_allocator.c thermal: power_allocator: fix one race condition issue for thermal_instances list 2017-12-27 10:13:20 +08:00
qoriq_thermal.c thermal: qoriq: Remove unnecessary DT node is NULL check 2019-05-14 07:00:27 -07:00
rcar_gen3_thermal.c thermal: rcar_gen3_thermal: disable interrupt in .remove 2019-05-14 07:00:32 -07:00
rcar_thermal.c thermal: rcar_thermal: add R8A77990 support 2019-01-02 04:47:22 -08:00
rockchip_thermal.c thermal: rockchip: Support the PX30 SoC in thermal driver 2019-05-14 07:00:40 -07:00
spear_thermal.c thermal: spear_thermal: simplify getting .driver_data 2018-11-30 16:46:56 +08:00
step_wise.c thermal/drivers/step_wise: Fix temperature regulation misbehavior 2017-10-31 19:32:17 -07:00
tango_thermal.c thermal: tango: Fix module autoload 2016-11-23 10:07:35 +08:00
thermal_core.c thermal: Introduce devm_thermal_of_cooling_device_register 2019-05-14 07:00:30 -07:00
thermal_core.h drivers: thermal: Update license to SPDX format 2018-05-30 14:46:17 +08:00
thermal_helpers.c drivers: thermal: Update license to SPDX format 2018-05-30 14:46:17 +08:00
thermal_hwmon.c thermal_hwmon: Pass the originating device down to hwmon_device_register_with_info 2018-07-27 14:43:21 -07:00
thermal_hwmon.h thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set 2019-01-02 04:43:00 -08:00
thermal_mmio.c thermal: Introduce Amazon's Annapurna Labs Thermal Driver 2019-05-14 07:00:26 -07:00
thermal_sysfs.c thermal: Fix locking in cooling device sysfs update cur_state 2018-11-30 16:57:51 +08:00
thermal-generic-adc.c thermal: generic-adc: make lookup table optional 2019-05-14 07:00:28 -07:00
uniphier_thermal.c thermal: uniphier: Convert to SPDX identifier 2019-01-02 04:47:16 -08:00
user_space.c thermal: fix source code documentation for parameters 2017-06-29 10:46:31 +08:00
zx2967_thermal.c thermal: zx2967_thermal: simplify getting .driver_data 2018-11-30 16:46:57 +08:00