after a long discussion with Robert Moore and Lv Zheng form intel (they are ACPICA maintainer), they agreed to introduce a kernel config for the ACPI_HARDWARE_REDUCED macro, some thing like:
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index 0d7f6eb..1232a7b 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -413,6 +413,14 @@ config ACPI_BGRT
data from the firmware boot splash. It will appear under /sys/firmware/acpi/bgrt/ .
+config ACPI_REDUCED_HARDWARE
+ bool "Hardware-reduced ACPI support"
+ depends on ARM || ARM64
+ help
+ This config adds support for Hardware-reduced ACPI. When this option
+ is selected, will generate a specialized version of ACPICA that ONLY
+ supports the ACPI 5.0 "reduced hardware".
+
source "drivers/acpi/apei/Kconfig"
after a long discussion with Robert Moore and Lv Zheng form intel (they are ACPICA maintainer), they agreed to introduce a kernel config for the ACPI_HARDWARE_ REDUCED macro, some thing like:
From b10bc1d2f9a3ff0 9abfb6990412aa1 cf62d56937 Mon Sep 17 00:00:00 2001 ACPI_REDUCED_ HARDWARE to enable
From: Hanjun Guo <email address hidden>
Date: Wed, 18 Sep 2013 17:19:23 +0800
Subject: [PATCH] ACPI: Introduce CONFIG_
reduced hardware
If we want to enable reduced hardware ACPI on some platform (such as ARM), HARDWARE to TRUE.
we need to modify the kernel code and set ACPI_REDUCED_
This is not reasonable, so introduce a kernel config to enable it, and
no need for kernel modification when we use hardware-reduced ACPI.
Signed-off-by: Hanjun Guo <email address hidden> acpi/Kconfig | 8 ++++++++ acpi/acconfig. h | 4 ++++
---
drivers/
include/
2 files changed, 12 insertions(+)
diff --git a/drivers/ acpi/Kconfig b/drivers/ acpi/Kconfig acpi/Kconfig acpi/Kconfig
/sys/ firmware/ acpi/bgrt/ .
index 0d7f6eb..1232a7b 100644
--- a/drivers/
+++ b/drivers/
@@ -413,6 +413,14 @@ config ACPI_BGRT
data from the firmware boot splash. It will appear under
+config ACPI_REDUCED_ HARDWARE acpi/apei/ Kconfig"
+ bool "Hardware-reduced ACPI support"
+ depends on ARM || ARM64
+ help
+ This config adds support for Hardware-reduced ACPI. When this option
+ is selected, will generate a specialized version of ACPICA that ONLY
+ supports the ACPI 5.0 "reduced hardware".
+
source "drivers/
endif # ACPI acpi/acconfig. h b/include/ acpi/acconfig. h acpi/acconfig. h acpi/acconfig. h ACPI_REDUCED_ HARDWARE HARDWARE TRUE HARDWARE FALSE ACPI_REDUCED_ HARDWARE */
diff --git a/include/
index 1c16f82..15254f5 100644
--- a/include/
+++ b/include/
@@ -100,7 +100,11 @@
* ACPI PM timer
* FACS table (Waking vectors and Global Lock)
*/
+#ifdef CONFIG_
+#define ACPI_REDUCED_
+#else
#define ACPI_REDUCED_
+#endif /* CONFIG_
/***** ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ***
*
-- 1.7.9.5