asus-wmi: Add support for platform_profile
authorLuke D. Jones <luke@ljones.dev>
Wed, 18 Aug 2021 19:07:31 +0000 (07:07 +1200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 20 Aug 2021 10:09:42 +0000 (12:09 +0200)
commitc63d44ae602419eda128cecd33d226f3d3f18df2
tree1e7e66e795581bdc267b623d110afc10c0478df0
parentae26278829a80ad0e60ff004de71e9276cee5dc0
asus-wmi: Add support for platform_profile

Add initial support for platform_profile where the support is
based on availability of ASUS_THROTTLE_THERMAL_POLICY.

Because throttle_thermal_policy is used by platform_profile and is
writeable separately to platform_profile any userspace changes to
throttle_thermal_policy need to notify platform_profile.

In future throttle_thermal_policy sysfs should be removed so that
only one method controls the laptop power profile.

Signed-off-by: Luke D. Jones <luke@ljones.dev>
Link: https://lore.kernel.org/r/20210818190731.19170-2-luke@ljones.dev
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/Kconfig
drivers/platform/x86/asus-wmi.c