summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica/evsci.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2012-02-14 14:14:27 +0400
committerLen Brown <len.brown@intel.com>2012-03-22 09:44:49 +0400
commit33620c5419e8a11814dd11e02a80e6ef77a43407 (patch)
tree8643dbb1e332dd9ece6fb92f22000413e8d8fdc7 /drivers/acpi/acpica/evsci.c
parentd08310fe0d6bd8c82da94e8d8ef48bdbe14d2bd1 (diff)
downloadlinux-33620c5419e8a11814dd11e02a80e6ef77a43407.tar.xz
ACPICA: Support for custom ACPICA build for ACPI 5 reduced hardware
Add ACPI_REDUCED_HARDWARE flag that removes all hardware-related code (about 10% code, 5% static data). Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/evsci.c')
-rw-r--r--drivers/acpi/acpica/evsci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/evsci.c b/drivers/acpi/acpica/evsci.c
index 26065c612e76..6a57aa2d70d1 100644
--- a/drivers/acpi/acpica/evsci.c
+++ b/drivers/acpi/acpica/evsci.c
@@ -48,7 +48,7 @@
#define _COMPONENT ACPI_EVENTS
ACPI_MODULE_NAME("evsci")
-
+#if (!ACPI_REDUCED_HARDWARE) /* Entire module */
/* Local prototypes */
static u32 ACPI_SYSTEM_XFACE acpi_ev_sci_xrupt_handler(void *context);
@@ -181,3 +181,5 @@ acpi_status acpi_ev_remove_sci_handler(void)
return_ACPI_STATUS(status);
}
+
+#endif /* !ACPI_REDUCED_HARDWARE */