We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a799095 commit b012170Copy full SHA for b012170
drivers/platform/x86/asus-wmi.c
@@ -3908,6 +3908,16 @@ static int platform_profile_setup(struct asus_wmi *asus)
3908
if (!asus->throttle_thermal_policy_dev)
3909
return 0;
3910
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
+
3921
dev_info(dev, "Using throttle_thermal_policy for platform_profile support\n");
3922
3923
asus->platform_profile_handler.profile_get = asus_wmi_platform_profile_get;
0 commit comments