From 474a62bc74fe923cd6f43e13ca82b1ce2f40e76f Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Wed, 18 Jul 2018 21:42:16 -0700 Subject: x86: acpi: Don't touch ACPI hardware in write_acpi_tables() write_acpi_tables() currently touches ACPI hardware to switch to ACPI mode at the end. Move such operation out of this function, so that it only does what the function name tells us. Signed-off-by: Bin Meng Reviewed-by: Simon Glass Tested-by: Andy Shevchenko --- arch/x86/lib/acpi_table.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'arch/x86/lib/acpi_table.c') diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c index e26c54d187a..e48c9b95744 100644 --- a/arch/x86/lib/acpi_table.c +++ b/arch/x86/lib/acpi_table.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -444,16 +443,6 @@ ulong write_acpi_tables(ulong start) acpi_rsdp_addr = (unsigned long)rsdp; debug("ACPI: done\n"); - /* Don't touch ACPI hardware on HW reduced platforms */ - if (fadt->flags & ACPI_FADT_HW_REDUCED_ACPI) - return current; - - /* - * Other than waiting for OSPM to request us to switch to ACPI mode, - * do it by ourselves, since SMI will not be triggered. - */ - enter_acpi_mode(fadt->pm1a_cnt_blk); - return current; } -- cgit v1.2.3