summaryrefslogtreecommitdiff
path: root/src/acpi/acpi.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-06-07 12:01:58 +0300
committerAngel Pons <th3fanbus@gmail.com>2020-11-19 22:58:41 +0000
commite0d38680d4daeeebc2fcc580c23b7305be577ac2 (patch)
tree419c1136aef2520dff5a528653cf8723ba26f6f8 /src/acpi/acpi.c
parent4a3f67a9f22f52c2f495cf3708ffb2a92bd9fa70 (diff)
downloadcoreboot-e0d38680d4daeeebc2fcc580c23b7305be577ac2.tar.xz
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>
Diffstat (limited to 'src/acpi/acpi.c')
-rw-r--r--src/acpi/acpi.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c
index 5fb2422cdb..abc6e01b0a 100644
--- a/src/acpi/acpi.c
+++ b/src/acpi/acpi.c
@@ -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);