summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/hwsleep.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2012-02-14 18:14:27 +0800
committerLen Brown <len.brown@intel.com>2012-03-22 01:44:49 -0400
commit33620c5419e8a11814dd11e02a80e6ef77a43407 (patch)
tree8643dbb1e332dd9ece6fb92f22000413e8d8fdc7 /drivers/acpi/acpica/hwsleep.c
parentd08310fe0d6bd8c82da94e8d8ef48bdbe14d2bd1 (diff)
downloadop-kernel-dev-33620c5419e8a11814dd11e02a80e6ef77a43407.zip
op-kernel-dev-33620c5419e8a11814dd11e02a80e6ef77a43407.tar.gz
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/hwsleep.c')
-rw-r--r--drivers/acpi/acpica/hwsleep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/hwsleep.c b/drivers/acpi/acpica/hwsleep.c
index 59a2a6b..fa34147 100644
--- a/drivers/acpi/acpica/hwsleep.c
+++ b/drivers/acpi/acpica/hwsleep.c
@@ -197,6 +197,7 @@ void acpi_hw_execute_SST(u32 indicator_id)
}
}
+#if (!ACPI_REDUCED_HARDWARE)
/*******************************************************************************
*
* FUNCTION: acpi_hw_legacy_sleep
@@ -512,6 +513,7 @@ acpi_status acpi_hw_legacy_wake(u8 sleep_state)
return_ACPI_STATUS(status);
}
+#endif /* !ACPI_REDUCED_HARDWARE */
/*******************************************************************************
*
OpenPOWER on IntegriCloud