@@ -79,6 +79,15 @@ config ACPI_DEBUGGER_USER
endif
+config ACPI_APPLE
+ bool "Apple ACPI properties support"
+ default y if X86
+ help
+ Extraction of Apple-specific ACPI properties.
+
+ Say N if you're sure the kernel won't be used on an Apple machine
+ and wanna save a few kb of memory. (embedded or high-density VMs)
+
config ACPI_SPCR_TABLE
bool "ACPI Serial Port Console Redirection Support"
default y if X86
@@ -52,7 +52,7 @@ acpi-y += evged.o
acpi-y += sysfs.o
acpi-y += property.o
acpi-$(CONFIG_X86) += acpi_cmos_rtc.o
-acpi-$(CONFIG_X86) += x86/apple.o
+acpi-$(CONFIG_ACPI_APPLE) += x86/apple.o
acpi-$(CONFIG_X86) += x86/utils.o
acpi-$(CONFIG_DEBUG_FS) += debugfs.o
acpi-y += acpi_lpat.o
@@ -239,7 +239,7 @@ static inline void suspend_nvs_restore(void) {}
void acpi_init_properties(struct acpi_device *adev);
void acpi_free_properties(struct acpi_device *adev);
-#ifdef CONFIG_X86
+#ifdef CONFIG_ACPI_APPLE
void acpi_extract_apple_properties(struct acpi_device *adev);
#else
static inline void acpi_extract_apple_properties(struct acpi_device *adev) {}
Most x86 machines aren't Apple machines, especially VMs. Therefore allow opt-out, making the kernel a few KBs smaller, eg. for embedded or high-density VMs. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> --- drivers/acpi/Kconfig | 9 +++++++++ drivers/acpi/Makefile | 2 +- drivers/acpi/internal.h | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-)