diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2023-06-20 12:24:31 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-06-21 18:44:56 +0200 |
commit | 965262ef71c475857d0984a5eee57694b207a113 (patch) | |
tree | 9b9e2497ebcadbcbb8711fa385b37316339623f2 /include/acpi | |
parent | a4ba10bf6855bf9381fe2365ec9c3af84c1fa7db (diff) | |
download | lwn-965262ef71c475857d0984a5eee57694b207a113.tar.gz lwn-965262ef71c475857d0984a5eee57694b207a113.zip |
ACPI: CPPC: Add definition for undefined FADT preferred PM profile value
In the event a new preferred PM profile value is introduced it's best for
code to be able to defensively guard against it so that the wrong settings
don't get applied on a new system that uses this profile but ancient
kernels.
Acked-by: Huang Rui <ray.huang@amd.com>
Suggested-by: Gautham Ranjal Shenoy <gautham.shenoy@amd.com>
Link: https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/05_ACPI_Software_Programming_Model/ACPI_Software_Programming_Model.html#fixed-acpi-description-table-fadt
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Perry Yuan <Perry.Yuan@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/actbl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/acpi/actbl.h b/include/acpi/actbl.h index e5dfb6f4de52..451f6276da49 100644 --- a/include/acpi/actbl.h +++ b/include/acpi/actbl.h @@ -307,7 +307,8 @@ enum acpi_preferred_pm_profiles { PM_SOHO_SERVER = 5, PM_APPLIANCE_PC = 6, PM_PERFORMANCE_SERVER = 7, - PM_TABLET = 8 + PM_TABLET = 8, + NR_PM_PROFILES = 9 }; /* Values for sleep_status and sleep_control registers (V5+ FADT) */ |