Commit 1c00bb7
platform/x86: asus-wmi: Fix inconsistent use of thermal policies
[ Upstream commit 895085e ]
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: bcbfceb ("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>1 parent 3d48d0f commit 1c00bb7
1 file changed
Lines changed: 21 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3696 | 3696 | | |
3697 | 3697 | | |
3698 | 3698 | | |
3699 | | - | |
3700 | 3699 | | |
| 3700 | + | |
3701 | 3701 | | |
3702 | 3702 | | |
| 3703 | + | |
| 3704 | + | |
| 3705 | + | |
| 3706 | + | |
| 3707 | + | |
| 3708 | + | |
| 3709 | + | |
| 3710 | + | |
| 3711 | + | |
| 3712 | + | |
| 3713 | + | |
| 3714 | + | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
| 3718 | + | |
| 3719 | + | |
| 3720 | + | |
3703 | 3721 | | |
3704 | 3722 | | |
3705 | 3723 | | |
| |||
3804 | 3822 | | |
3805 | 3823 | | |
3806 | 3824 | | |
3807 | | - | |
3808 | | - | |
3809 | | - | |
3810 | | - | |
3811 | | - | |
3812 | | - | |
3813 | | - | |
3814 | | - | |
3815 | | - | |
3816 | | - | |
3817 | | - | |
3818 | | - | |
3819 | | - | |
3820 | | - | |
3821 | | - | |
3822 | | - | |
3823 | | - | |
3824 | | - | |
3825 | | - | |
3826 | | - | |
3827 | | - | |
3828 | | - | |
3829 | | - | |
3830 | | - | |
3831 | | - | |
3832 | | - | |
3833 | | - | |
3834 | | - | |
3835 | | - | |
3836 | | - | |
3837 | | - | |
3838 | | - | |
3839 | | - | |
3840 | | - | |
3841 | | - | |
3842 | | - | |
3843 | | - | |
3844 | | - | |
3845 | | - | |
3846 | | - | |
3847 | 3825 | | |
3848 | 3826 | | |
3849 | 3827 | | |
| |||
3853 | 3831 | | |
3854 | 3832 | | |
3855 | 3833 | | |
3856 | | - | |
| 3834 | + | |
3857 | 3835 | | |
3858 | 3836 | | |
3859 | 3837 | | |
| |||
3892 | 3870 | | |
3893 | 3871 | | |
3894 | 3872 | | |
3895 | | - | |
| 3873 | + | |
3896 | 3874 | | |
3897 | 3875 | | |
3898 | 3876 | | |
| |||
0 commit comments