Skip to content

Commit 5eb15d2

Browse files
Wer-Wolfgregkh
authored andcommitted
platform/x86: asus-wmi: Fix thermal profile initialization
commit b012170 upstream. 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 <[email protected]> Closes: https://www.phoronix.com/review/lunar-lake-xe2/5 Signed-off-by: Armin Wolf <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8bb7b68 commit 5eb15d2

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
@@ -3569,6 +3569,16 @@ static int platform_profile_setup(struct asus_wmi *asus)
35693569
if (!asus->throttle_thermal_policy_dev)
35703570
return 0;
35713571

3572+
/*
3573+
* We need to set the default thermal profile during probe or otherwise
3574+
* the system will often remain in silent mode, causing low performance.
3575+
*/
3576+
err = throttle_thermal_policy_set_default(asus);
3577+
if (err < 0) {
3578+
pr_warn("Failed to set default thermal profile\n");
3579+
return err;
3580+
}
3581+
35723582
dev_info(dev, "Using throttle_thermal_policy for platform_profile support\n");
35733583

35743584
asus->platform_profile_handler.profile_get = asus_wmi_platform_profile_get;

0 commit comments

Comments
 (0)