platform/x86: thinkpad_acpi: Add platform profile support
authorMark Pearson <markpearson@lenovo.com>
Mon, 11 Jan 2021 16:22:37 +0000 (11:22 -0500)
committerHans de Goede <hdegoede@redhat.com>
Tue, 2 Feb 2021 14:42:35 +0000 (15:42 +0100)
commitc3bfcd4c676238e198d5a798b50e5d424bf05497
tree271266954584848012c539da83fc421e6b91b0da
parenteffe55add04fd30ccd7700b11fa042124aa345af
platform/x86: thinkpad_acpi: Add platform profile support

Add support to thinkpad_acpi for Lenovo platforms that have DYTC
version 5 support or newer to use the platform profile feature.

This will allow users to determine and control the platform modes
between low-power, balanced operation and performance modes.

Signed-off-by: Mark Pearson <markpearson@lenovo.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210111162237.3469-1-markpearson@lenovo.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c