diff options
author | Bob Moore <robert.moore@intel.com> | 2012-02-14 05:14:27 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-03-22 01:44:49 -0400 |
commit | 33620c5419e8a11814dd11e02a80e6ef77a43407 (patch) | |
tree | 8643dbb1e332dd9ece6fb92f22000413e8d8fdc7 /drivers/acpi/acpica/hwacpi.c | |
parent | d08310fe0d6bd8c82da94e8d8ef48bdbe14d2bd1 (diff) |
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/hwacpi.c')
-rw-r--r-- | drivers/acpi/acpica/hwacpi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/hwacpi.c b/drivers/acpi/acpica/hwacpi.c index d21ec5f0b3a9..d0b9ed5df97e 100644 --- a/drivers/acpi/acpica/hwacpi.c +++ b/drivers/acpi/acpica/hwacpi.c | |||
@@ -48,6 +48,7 @@ | |||
48 | #define _COMPONENT ACPI_HARDWARE | 48 | #define _COMPONENT ACPI_HARDWARE |
49 | ACPI_MODULE_NAME("hwacpi") | 49 | ACPI_MODULE_NAME("hwacpi") |
50 | 50 | ||
51 | #if (!ACPI_REDUCED_HARDWARE) /* Entire module */ | ||
51 | /****************************************************************************** | 52 | /****************************************************************************** |
52 | * | 53 | * |
53 | * FUNCTION: acpi_hw_set_mode | 54 | * FUNCTION: acpi_hw_set_mode |
@@ -166,3 +167,5 @@ u32 acpi_hw_get_mode(void) | |||
166 | return_UINT32(ACPI_SYS_MODE_LEGACY); | 167 | return_UINT32(ACPI_SYS_MODE_LEGACY); |
167 | } | 168 | } |
168 | } | 169 | } |
170 | |||
171 | #endif /* !ACPI_REDUCED_HARDWARE */ | ||