Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iwlwifi: mvm: tt: Replace thermal_notify_framework

thermal_notify_framework just updates for a single trip point where as
thermal_zone_device_update does other bookkeeping like updating the
temperature of the thermal zone and setting the next trip point etc.
Replace thermal_notify_framework with thermal_zone_device_update as the
later is more thorough.

Acked-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210122023406.3500424-2-thara.gopinath@linaro.org

authored by

Thara Gopinath and committed by
Daniel Lezcano
93effd83 08e9fdfb

+2 -2
+2 -2
drivers/net/wireless/intel/iwlwifi/mvm/tt.c
··· 146 146 if (mvm->tz_device.tzone) { 147 147 struct iwl_mvm_thermal_device *tz_dev = &mvm->tz_device; 148 148 149 - thermal_notify_framework(tz_dev->tzone, 150 - tz_dev->fw_trips_index[ths_crossed]); 149 + thermal_zone_device_update(tz_dev->tzone, 150 + THERMAL_TRIP_VIOLATED); 151 151 } 152 152 #endif /* CONFIG_THERMAL */ 153 153 }