]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI: platform_profile: Add concept of a "custom" profile
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 6 Dec 2024 03:19:12 +0000 (21:19 -0600)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 10 Dec 2024 17:18:11 +0000 (19:18 +0200)
commit494637cf5bf098ac0fe125dd6d23368419fe9da4
treeeed9310dab64ffc84af003c08f05458e35cbc4c9
parent06ec24388f1de63a5d9b0dc1994bc2180d7ff6b8
ACPI: platform_profile: Add concept of a "custom" profile

When two profile handlers don't agree on the current profile it's ambiguous
what to show to the legacy sysfs interface.

Add a "custom" profile string that userspace will be able to use the legacy
sysfs interface to distinguish this situation..

Additionally drivers can choose to use this to indicate that a user has
modified driver settings in a way that the platform profile advertised by
a driver is not accurate.

Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20241206031918.1537-17-mario.limonciello@amd.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/acpi/platform_profile.c
include/linux/platform_profile.h