diff options
author | Lv Zheng <lv.zheng@intel.com> | 2014-04-29 22:04:55 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-05-06 18:55:01 -0400 |
commit | 1ce28c32d8deeca3cd53802e8cd710b9b4799398 (patch) | |
tree | cad1b4cf286c5c9e9b71d308d265dac111b33ce7 | |
parent | 407e22afcf0701ec5543f39934c43b10082a1a97 (diff) |
ACPICA: OSL: Add configurability for debug output functions.
This patch extends ACPI_HW_DEPENDENT_x mechanism to all debugging output
related functions so that the OSPMs can have full control to configure
them into stub functions.
This patch doesn't include code for Linux to use this new mechanism, thus
no functional change. Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | include/acpi/acpixf.h | 49 |
1 files changed, 31 insertions, 18 deletions
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index 39f432e513f2..923775a5e9e9 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
@@ -256,6 +256,21 @@ ACPI_GLOBAL(u8, acpi_gbl_system_awake_and_running); | |||
256 | #endif /* ACPI_NO_ERROR_MESSAGES */ | 256 | #endif /* ACPI_NO_ERROR_MESSAGES */ |
257 | 257 | ||
258 | /* | 258 | /* |
259 | * Debugging-output prototypes. All interfaces that use these macros will | ||
260 | * be configured out of the ACPICA build if the ACPI_DEBUG_OUTPUT flag is | ||
261 | * not defined. | ||
262 | */ | ||
263 | #ifdef ACPI_DEBUG_OUTPUT | ||
264 | #define ACPI_DBG_DEPENDENT_RETURN_VOID(prototype) \ | ||
265 | prototype; | ||
266 | |||
267 | #else | ||
268 | #define ACPI_DBG_DEPENDENT_RETURN_VOID(prototype) \ | ||
269 | static ACPI_INLINE prototype {return;} | ||
270 | |||
271 | #endif /* ACPI_DEBUG_OUTPUT */ | ||
272 | |||
273 | /* | ||
259 | * Initialization | 274 | * Initialization |
260 | */ | 275 | */ |
261 | acpi_status __init | 276 | acpi_status __init |
@@ -716,22 +731,20 @@ ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3) | |||
716 | /* | 731 | /* |
717 | * Debug output | 732 | * Debug output |
718 | */ | 733 | */ |
719 | #ifdef ACPI_DEBUG_OUTPUT | 734 | ACPI_DBG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(6) |
720 | ACPI_PRINTF_LIKE(6) | 735 | void ACPI_INTERNAL_VAR_XFACE |
721 | void ACPI_INTERNAL_VAR_XFACE | 736 | acpi_debug_print(u32 requested_debug_level, |
722 | acpi_debug_print(u32 requested_debug_level, | 737 | u32 line_number, |
723 | u32 line_number, | 738 | const char *function_name, |
724 | const char *function_name, | 739 | const char *module_name, |
725 | const char *module_name, | 740 | u32 component_id, |
726 | u32 component_id, const char *format, ...); | 741 | const char *format, ...)) |
727 | 742 | ACPI_DBG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(6) | |
728 | ACPI_PRINTF_LIKE(6) | 743 | void ACPI_INTERNAL_VAR_XFACE |
729 | void ACPI_INTERNAL_VAR_XFACE | 744 | acpi_debug_print_raw(u32 requested_debug_level, |
730 | acpi_debug_print_raw(u32 requested_debug_level, | 745 | u32 line_number, |
731 | u32 line_number, | 746 | const char *function_name, |
732 | const char *function_name, | 747 | const char *module_name, |
733 | const char *module_name, | 748 | u32 component_id, |
734 | u32 component_id, const char *format, ...); | 749 | const char *format, ...)) |
735 | #endif | ||
736 | |||
737 | #endif /* __ACXFACE_H__ */ | 750 | #endif /* __ACXFACE_H__ */ |