Skip to content

Commit 965262e

Browse files
superm1rafaeljw
authored andcommitted
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 <[email protected]> Suggested-by: Gautham Ranjal Shenoy <[email protected]> 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 <[email protected]> Reviewed-by: Perry Yuan <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent a4ba10b commit 965262e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/acpi/actbl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ enum acpi_preferred_pm_profiles {
307307
PM_SOHO_SERVER = 5,
308308
PM_APPLIANCE_PC = 6,
309309
PM_PERFORMANCE_SERVER = 7,
310-
PM_TABLET = 8
310+
PM_TABLET = 8,
311+
NR_PM_PROFILES = 9
311312
};
312313

313314
/* Values for sleep_status and sleep_control registers (V5+ FADT) */

0 commit comments

Comments
 (0)