aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorMario Limonciello <[email protected]>2024-12-06 03:19:16 +0000
committerIlpo Järvinen <[email protected]>2024-12-10 17:18:18 +0000
commit688834743d672b55ce357e11e34be835c78467e8 (patch)
tree8bacaf172a6144a6dfd387544541137334dab23e /drivers/platform/x86/intel/pmt/class.c
parentACPI: platform_profile: Notify class device from platform_profile_notify() (diff)
downloadkernel-688834743d672b55ce357e11e34be835c78467e8.tar.gz
kernel-688834743d672b55ce357e11e34be835c78467e8.zip
ACPI: platform_profile: Allow multiple handlers
Multiple drivers may attempt to register platform profile handlers, but only one may be registered and the behavior is non-deterministic for which one wins. It's mostly controlled by probing order. This can be problematic if one driver changes CPU settings and another driver notifies the EC for changing fan curves. Modify the ACPI platform profile handler to let multiple drivers register platform profile handlers and abstract this detail from userspace. To avoid undefined behaviors only offer profiles that are commonly advertised across multiple handlers. If any problems occur when changing profiles for any driver, then the drivers that were already changed remain changed and the legacy sysfs handler will report 'custom'. Tested-by: Mark Pearson <[email protected]> Tested-by: Matthew Schwartz <[email protected]> Reviewed-by: Mark Pearson <[email protected]> Reviewed-by: Armin Wolf <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Mario Limonciello <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions