]> Git Repo - linux.git/commitdiff
ACPI: use proper DYNAMIC_DEBUG_BRANCH macro
authorRasmus Villemoes <[email protected]>
Fri, 8 Mar 2019 00:28:03 +0000 (16:28 -0800)
committerLinus Torvalds <[email protected]>
Fri, 8 Mar 2019 02:32:00 +0000 (18:32 -0800)
dynamic debug may be implemented via static keys, but ACPI is missing
out on that runtime benefit since it open-codes one possible definition
of DYNAMIC_DEBUG_BRANCH.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Rasmus Villemoes <[email protected]>
Acked-by: Jason Baron <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Cc: David Sterba <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Petr Mladek <[email protected]>
Cc: Steven Rostedt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/acpi.h

index 03b4c4f225d00241eb6ffba3793ccfefa88f9a6d..c15a007f17906a501b84ea59da8c7f892faa3d5c 100644 (file)
@@ -987,7 +987,7 @@ void __acpi_handle_debug(struct _ddebug *descriptor, acpi_handle handle, const c
 #define acpi_handle_debug(handle, fmt, ...)                            \
 do {                                                                   \
        DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);                 \
-       if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT))          \
+       if (DYNAMIC_DEBUG_BRANCH(descriptor))                           \
                __acpi_handle_debug(&descriptor, handle, pr_fmt(fmt),   \
                                ##__VA_ARGS__);                         \
 } while (0)
This page took 0.061933 seconds and 4 git commands to generate.