Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: bcbfcebda2cb ("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>

authored by

Armin Wolf and committed by
Hans de Goede
b012170f a7990957

+10
+10
drivers/platform/x86/asus-wmi.c
··· 3908 3908 if (!asus->throttle_thermal_policy_dev) 3909 3909 return 0; 3910 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 + 3911 3921 dev_info(dev, "Using throttle_thermal_policy for platform_profile support\n"); 3912 3922 3913 3923 asus->platform_profile_handler.profile_get = asus_wmi_platform_profile_get;