summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/intel/pmt/class.h
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2024-11-07 01:38:10 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:01:35 +0100
commit1c00bb70f3ad03d13077472c6bfad7477ab36efb (patch)
tree6364d3fddeafb80dbdceeb056d69bb7523e4c696 /drivers/platform/x86/intel/pmt/class.h
parent3d48d0fbaaa74a04fb9092780a3f83dc4f3f8160 (diff)
platform/x86: asus-wmi: Fix inconsistent use of thermal policies
[ Upstream commit 895085ec3f2ed7a26389943729e2904df1f88dc0 ] 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 <casey.g.bowman@intel.com> Fixes: bcbfcebda2cb ("platform/x86: asus-wmi: add support for vivobook fan profiles") Signed-off-by: Armin Wolf <W_Armin@gmx.de> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20241107003811.615574-2-W_Armin@gmx.de Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.h')
0 files changed, 0 insertions, 0 deletions