summaryrefslogtreecommitdiffstats
path: root/releases/2.6.32.58/kernel.h-fix-wrong-usage-of-__ratelimit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'releases/2.6.32.58/kernel.h-fix-wrong-usage-of-__ratelimit.patch')
-rw-r--r--releases/2.6.32.58/kernel.h-fix-wrong-usage-of-__ratelimit.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/releases/2.6.32.58/kernel.h-fix-wrong-usage-of-__ratelimit.patch b/releases/2.6.32.58/kernel.h-fix-wrong-usage-of-__ratelimit.patch
new file mode 100644
index 0000000..0bf55e7
--- /dev/null
+++ b/releases/2.6.32.58/kernel.h-fix-wrong-usage-of-__ratelimit.patch
@@ -0,0 +1,33 @@
+From bb1dc0bacb8ddd7ba6a5906c678a5a5a110cf695 Mon Sep 17 00:00:00 2001
+From: Yong Zhang <yong.zhang@windriver.com>
+Date: Tue, 6 Apr 2010 14:35:02 -0700
+Subject: kernel.h: fix wrong usage of __ratelimit()
+
+From: Yong Zhang <yong.zhang@windriver.com>
+
+commit bb1dc0bacb8ddd7ba6a5906c678a5a5a110cf695 upstream.
+
+When __ratelimit() returns 1 this means that we can go ahead.
+
+Signed-off-by: Yong Zhang <yong.zhang@windriver.com>
+Cc: Ingo Molnar <mingo@elte.hu>
+Cc: Joe Perches <joe@perches.com>
+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@linuxfoundation.org>
+
+---
+ include/linux/kernel.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/include/linux/kernel.h
++++ b/include/linux/kernel.h
+@@ -417,7 +417,7 @@ static inline char *pack_hex_byte(char *
+ .burst = DEFAULT_RATELIMIT_BURST, \
+ }; \
+ \
+- if (!__ratelimit(&_rs)) \
++ if (__ratelimit(&_rs)) \
+ printk(fmt, ##__VA_ARGS__); \
+ })
+ #else