projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afe1a71
)
ACPI: use proper DYNAMIC_DEBUG_BRANCH macro
author
Rasmus Villemoes
<
[email protected]
>
Fri, 8 Mar 2019 00:28:03 +0000
(16:28 -0800)
committer
Linus 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
patch
|
blob
|
history
diff --git
a/include/linux/acpi.h
b/include/linux/acpi.h
index 03b4c4f225d00241eb6ffba3793ccfefa88f9a6d..c15a007f17906a501b84ea59da8c7f892faa3d5c 100644
(file)
--- a/
include/linux/acpi.h
+++ b/
include/linux/acpi.h
@@
-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)