aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/acmacros.h
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2012-02-14 18:57:13 +0800
committerLen Brown <len.brown@intel.com>2012-03-22 01:45:05 -0400
commit72a8887a356076dfa39bd6691c52446f90a50480 (patch)
tree6cdf2e3f228b8482273029066554d57c7095a405 /drivers/acpi/acpica/acmacros.h
parentACPICA: Split sleep/wake functions into two files (diff)
downloadlinux-dev-72a8887a356076dfa39bd6691c52446f90a50480.tar.xz
linux-dev-72a8887a356076dfa39bd6691c52446f90a50480.zip
ACPICA: Add table-driven dispatch for sleep/wake functions
Simplifies the code, especially the compile-time ACPI_REDUCED_HARDWARE option. 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/acmacros.h')
-rw-r--r--drivers/acpi/acpica/acmacros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/acmacros.h b/drivers/acpi/acpica/acmacros.h
index ef338a96f5b2..f119f473f71a 100644
--- a/drivers/acpi/acpica/acmacros.h
+++ b/drivers/acpi/acpica/acmacros.h
@@ -516,6 +516,12 @@
#endif /* ACPI_DEBUG_OUTPUT */
+#if (!ACPI_REDUCED_HARDWARE)
+#define ACPI_HW_OPTIONAL_FUNCTION(addr) addr
+#else
+#define ACPI_HW_OPTIONAL_FUNCTION(addr) NULL
+#endif
+
/*
* Some code only gets executed when the debugger is built in.
* Note that this is entirely independent of whether the