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:
3f16d18
)
linux/printk.h: use DYNAMIC_DEBUG_BRANCH in pr_debug_ratelimited
author
Rasmus Villemoes
<
[email protected]
>
Fri, 8 Mar 2019 00:27:29 +0000
(16:27 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 8 Mar 2019 02:32:00 +0000
(18:32 -0800)
pr_debug_ratelimited tests the dynamic debug descriptor the
old-fashioned way, and doesn't utilize the static key/jump label
implementation when CONFIG_JUMP_LABEL is set. Use the
DYNAMIC_DEBUG_BRANCH which is defined appropriately.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Rasmus Villemoes <
[email protected]
>
Acked-by: Petr Mladek <
[email protected]
>
Acked-by: Jason Baron <
[email protected]
>
Cc: Steven Rostedt <
[email protected]
>
Cc: David Sterba <
[email protected]
>
Cc: Greg Kroah-Hartman <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: "Rafael J . Wysocki" <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/printk.h
patch
|
blob
|
history
diff --git
a/include/linux/printk.h
b/include/linux/printk.h
index 77740a506ebbb96cb31aeec9bce44a33f73e23e7..02b5c115d89b275058a645fff873cedbe8affed3 100644
(file)
--- a/
include/linux/printk.h
+++ b/
include/linux/printk.h
@@
-461,7
+461,7
@@
do { \
DEFAULT_RATELIMIT_INTERVAL, \
DEFAULT_RATELIMIT_BURST); \
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, pr_fmt(fmt)); \
- if (
unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT) &&
\
+ if (
DYNAMIC_DEBUG_BRANCH(descriptor) &&
\
__ratelimit(&_rs)) \
__dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \
} while (0)