ACPI: Define acpi_get_preferred_pm_profile()
Change-Id: I2e7f22ccccc6c0df8e7e9f354c50893a53a41714 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42140 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
committed by
Angel Pons
parent
4a3f67a9f2
commit
e0d38680d4
@@ -1251,14 +1251,7 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
|
||||
/* should be 0 ACPI 3.0 */
|
||||
fadt->reserved = 0;
|
||||
|
||||
if (CONFIG(SYSTEM_TYPE_CONVERTIBLE) ||
|
||||
CONFIG(SYSTEM_TYPE_LAPTOP))
|
||||
fadt->preferred_pm_profile = PM_MOBILE;
|
||||
else if (CONFIG(SYSTEM_TYPE_DETACHABLE) ||
|
||||
CONFIG(SYSTEM_TYPE_TABLET))
|
||||
fadt->preferred_pm_profile = PM_TABLET;
|
||||
else
|
||||
fadt->preferred_pm_profile = PM_DESKTOP;
|
||||
fadt->preferred_pm_profile = acpi_get_preferred_pm_profile();
|
||||
|
||||
arch_fill_fadt(fadt);
|
||||
|
||||
|
Reference in New Issue
Block a user