platform/x86: asus_wmi: Support throttle thermal policy
authorLeonid Maksymchuk <leonmaxx@gmail.com>
Sun, 15 Dec 2019 14:26:34 +0000 (16:26 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 10 Jan 2020 09:57:22 +0000 (11:57 +0200)
commit2daa86e78c494d06d0aac231e4533f3dc50fa432
treea60972da5ed8210204f36e59ae5851dc8ab2bf90
parentdf532c160c4402b09fca4bc8469a57cedf49f351
platform/x86: asus_wmi: Support throttle thermal policy

Throttle thermal policy ACPI device is used to control CPU cooling and
throttling. This patch adds sysfs entry for setting current mode and
Fn+F5 hotkey that switches to next.

Policy modes:
* 0x00 - default
* 0x01 - overboost
* 0x02 - silent

Signed-off-by: Leonid Maksymchuk <leonmaxx@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Documentation/ABI/testing/sysfs-platform-asus-wmi
drivers/platform/x86/asus-wmi.c
include/linux/platform_data/x86/asus-wmi.h