Skip to content

Commit b012170

Browse files
Wer-Wolfjwrdegoede
authored andcommitted
platform/x86: asus-wmi: Fix thermal profile initialization
When support for vivobook fan profiles was added, the initial call to throttle_thermal_policy_set_default() was removed, which however is necessary for full initialization. Fix this by calling throttle_thermal_policy_set_default() again when setting up the platform profile. Fixes: bcbfceb ("platform/x86: asus-wmi: add support for vivobook fan profiles") Reported-by: Michael Larabel <Michael@phoronix.com> Closes: https://www.phoronix.com/review/lunar-lake-xe2/5 Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20241025191514.15032-2-W_Armin@gmx.de Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent a799095 commit b012170

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/platform/x86/asus-wmi.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3908,6 +3908,16 @@ static int platform_profile_setup(struct asus_wmi *asus)
39083908
if (!asus->throttle_thermal_policy_dev)
39093909
return 0;
39103910

3911+
/*
3912+
* We need to set the default thermal profile during probe or otherwise
3913+
* the system will often remain in silent mode, causing low performance.
3914+
*/
3915+
err = throttle_thermal_policy_set_default(asus);
3916+
if (err < 0) {
3917+
pr_warn("Failed to set default thermal profile\n");
3918+
return err;
3919+
}
3920+
39113921
dev_info(dev, "Using throttle_thermal_policy for platform_profile support\n");
39123922

39133923
asus->platform_profile_handler.profile_get = asus_wmi_platform_profile_get;

0 commit comments

Comments
 (0)