aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorArmin Wolf <[email protected]>2024-11-07 00:38:10 +0000
committerIlpo Järvinen <[email protected]>2024-11-12 09:55:16 +0000
commit895085ec3f2ed7a26389943729e2904df1f88dc0 (patch)
treec30a1b856066618a8420d1fafaf0389449cd10d9 /drivers/platform/x86/intel/pmt/class.c
parentplatform/x86: hp: hp-bioscfg: remove redundant if statement (diff)
downloadkernel-895085ec3f2ed7a26389943729e2904df1f88dc0.tar.gz
kernel-895085ec3f2ed7a26389943729e2904df1f88dc0.zip
platform/x86: asus-wmi: Fix inconsistent use of thermal policies
When changing the thermal policy using the platform profile API, a Vivobook thermal policy is stored in throttle_thermal_policy_mode. However everywhere else a normal thermal policy is stored inside this variable, potentially confusing the platform profile. Fix this by always storing normal thermal policy values inside throttle_thermal_policy_mode and only do the conversion when writing the thermal policy to hardware. This also fixes the order in which throttle_thermal_policy_switch_next() steps through the thermal modes on Vivobook machines. Tested-by: Casey G Bowman <[email protected]> Fixes: bcbfcebda2cb ("platform/x86: asus-wmi: add support for vivobook fan profiles") Signed-off-by: Armin Wolf <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions