aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/bus.c2
-rw-r--r--include/acpi/apei.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index 43ce3b0c4921..437ddbf0c49a 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -544,10 +544,8 @@ static void acpi_bus_osc_support(void)
544 capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_PPC_OST_SUPPORT; 544 capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_PPC_OST_SUPPORT;
545#endif 545#endif
546 546
547#ifdef CONFIG_ACPI_APEI_GHES
548 if (!ghes_disable) 547 if (!ghes_disable)
549 capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_APEI_SUPPORT; 548 capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_APEI_SUPPORT;
550#endif
551 if (ACPI_FAILURE(acpi_get_handle(NULL, "\\_SB", &handle))) 549 if (ACPI_FAILURE(acpi_get_handle(NULL, "\\_SB", &handle)))
552 return; 550 return;
553 if (ACPI_SUCCESS(acpi_run_osc(handle, &context))) { 551 if (ACPI_SUCCESS(acpi_run_osc(handle, &context))) {
diff --git a/include/acpi/apei.h b/include/acpi/apei.h
index d40bc5521fcb..51a527d24a8a 100644
--- a/include/acpi/apei.h
+++ b/include/acpi/apei.h
@@ -18,7 +18,11 @@
18 18
19extern int hest_disable; 19extern int hest_disable;
20extern int erst_disable; 20extern int erst_disable;
21#ifdef CONFIG_ACPI_APEI_GHES
21extern int ghes_disable; 22extern int ghes_disable;
23#else
24#define ghes_disable 1
25#endif
22 26
23#ifdef CONFIG_ACPI_APEI 27#ifdef CONFIG_ACPI_APEI
24void __init acpi_hest_init(void); 28void __init acpi_hest_init(void);