Skip to content

Commit

Permalink
iwlwifi: mvm: tt: Replace thermal_notify_framework
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Thara Gopinath <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
tharagopinath authored and dlezcano committed Apr 22, 2021
1 parent 08e9fdf commit 93effd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/intel/iwlwifi/mvm/tt.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ void iwl_mvm_temp_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb)
if (mvm->tz_device.tzone) {
struct iwl_mvm_thermal_device *tz_dev = &mvm->tz_device;

thermal_notify_framework(tz_dev->tzone,
tz_dev->fw_trips_index[ths_crossed]);
thermal_zone_device_update(tz_dev->tzone,
THERMAL_TRIP_VIOLATED);
}
#endif /* CONFIG_THERMAL */
}
Expand Down

0 comments on commit 93effd8

Please sign in to comment.