Message ID | 1387239401-13918-2-git-send-email-al.stone@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Dec 16, 2013 at 05:16:37PM -0700, al.stone@linaro.org wrote: > +config ACPI_REDUCED_HARDWARE > + bool "Hardware-reduced ACPI support" > + depends on ARM || ARM64 > + help > + This config adds support for Hardware-reduced ACPI. Well, that's not really true - most of the hardware-reduced ACPI support seems to be built even if this isn't turned on. Maybe ACPI_REDUCED_HARDWARE_ONLY ?
On 12/26/2013 09:58 PM, Matthew Garrett wrote: > On Mon, Dec 16, 2013 at 05:16:37PM -0700, al.stone@linaro.org wrote: > >> +config ACPI_REDUCED_HARDWARE >> + bool "Hardware-reduced ACPI support" >> + depends on ARM || ARM64 >> + help >> + This config adds support for Hardware-reduced ACPI. > > Well, that's not really true - most of the hardware-reduced ACPI support > seems to be built even if this isn't turned on. Maybe > ACPI_REDUCED_HARDWARE_ONLY ? > Aha. Good point; semantically, it is unclear as is. I'll clarify and re-submit.
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index 5d92485..53f0f16 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -343,6 +343,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 "reduced hardware". + source "drivers/acpi/apei/Kconfig" config ACPI_EXTLOG diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index 28f4f4d..a33f502 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h @@ -52,6 +52,12 @@ #ifdef __KERNEL__ +/* Compile for reduced hardware mode if requested for this kernel config */ + +#ifdef CONFIG_ACPI_REDUCED_HARDWARE +#define ACPI_REDUCED_HARDWARE 1 +#endif + #include <linux/string.h> #include <linux/kernel.h> #include <linux/ctype.h>