]> err.no Git - linux-2.6/commitdiff
__ratelimit() cpu flags can't be static
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 28 Jul 2008 22:46:21 +0000 (15:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Jul 2008 23:30:20 +0000 (16:30 -0700)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/ratelimit.c

index 35136671b215f68222f498e086248fb8df51e64b..26187edcc7ead6c8c14bd69f1bb77cb3ca4640b4 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/module.h>
 
 static DEFINE_SPINLOCK(ratelimit_lock);
-static unsigned long flags;
 
 /*
  * __ratelimit - rate limiting
@@ -26,6 +25,8 @@ static unsigned long flags;
  */
 int __ratelimit(struct ratelimit_state *rs)
 {
+       unsigned long flags;
+
        if (!rs->interval)
                return 1;