]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kernel.h: add printk_ratelimited and pr_<level>_rl
authorJoe Perches <joe@perches.com>
Tue, 17 Jan 2012 04:06:18 +0000 (04:06 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 25 Jan 2012 21:53:24 +0000 (13:53 -0800)
commit74e8e01d2c9f10b4b1ae559e1fd281bd00741d79
tree63d61110cb429315f26f4136988d6e29ee51f4db
parent9e5cfd33a485494c731458de02ae58ea256538b8
kernel.h: add printk_ratelimited and pr_<level>_rl

commit 8a64f336bc1d4aa203b138d29d5a9c414a9fbb47 upstream.

Add a printk_ratelimited statement expression macro that uses a per-call
ratelimit_state so that multiple subsystems output messages are not
suppressed by a global __ratelimit state.

[akpm@linux-foundation.org: coding-style fixes]
[akpm@linux-foundation.org: s/_rl/_ratelimited/g]
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Naohiro Ooiwa <nooiwa@miraclelinux.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/kernel.h