projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14fcc23
)
__ratelimit() cpu flags can't be static
author
Alexey Dobriyan
<adobriyan@gmail.com>
Mon, 28 Jul 2008 22:46:21 +0000
(15:46 -0700)
committer
Linus 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
patch
|
blob
|
blame
|
history
diff --git
a/lib/ratelimit.c
b/lib/ratelimit.c
index 35136671b215f68222f498e086248fb8df51e64b..26187edcc7ead6c8c14bd69f1bb77cb3ca4640b4 100644
(file)
--- a/
lib/ratelimit.c
+++ b/
lib/ratelimit.c
@@
-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;