summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-02-07 20:10:24 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-02-08 14:54:55 +0100
commit61d88437546f5f40b6411aac17c55d0298c7a19d (patch)
treed6a441c61333e65dc7a6e9ac8d5db35c3c6223ff /arch/powerpc
parent2e171a57c312cb732d633c5ccc51551588b7a855 (diff)
downloadlinux-stable-61d88437546f5f40b6411aac17c55d0298c7a19d.tar.gz
linux-stable-61d88437546f5f40b6411aac17c55d0298c7a19d.tar.bz2
linux-stable-61d88437546f5f40b6411aac17c55d0298c7a19d.zip
iwlwifi: mvm: Populate trip table before registering thermal zone
The trip table in iwl_mvm_thermal_zone_register() is populated after passing it to thermal_zone_device_register_with_trips(), so it may be accessed (for instance, via sysfs) before it is ready. To prevent that from happening, modify the function to populate the trip table before calling thermal_zone_device_register_with_trips(). Also make the code use THERMAL_TEMP_INVALID as the "invalid temperature" value which is also meaningful for the core. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Miri Korenblit <Miriam.rachel.korenblit@intel.com>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions