Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

__ratelimit() cpu flags can't be static

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>

authored by

Alexey Dobriyan and committed by
Linus Torvalds
4d9c377c 14fcc23f

+2 -1
+2 -1
lib/ratelimit.c
··· 15 15 #include <linux/module.h> 16 16 17 17 static DEFINE_SPINLOCK(ratelimit_lock); 18 - static unsigned long flags; 19 18 20 19 /* 21 20 * __ratelimit - rate limiting ··· 25 26 */ 26 27 int __ratelimit(struct ratelimit_state *rs) 27 28 { 29 + unsigned long flags; 30 + 28 31 if (!rs->interval) 29 32 return 1; 30 33