diff options
author | Bob Moore <robert.moore@intel.com> | 2012-02-14 18:57:13 +0800 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-03-22 01:45:05 -0400 |
commit | 72a8887a356076dfa39bd6691c52446f90a50480 (patch) | |
tree | 6cdf2e3f228b8482273029066554d57c7095a405 /drivers/acpi/acpica/acmacros.h | |
parent | 709585765734e90d9fe0a2dc9c6f4e49eff5c6ec (diff) |
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.h | 6 |
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 |