Commit 4d9c377c authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

__ratelimit() cpu flags can't be static

Signed-off-by: default avatarAlexey Dobriyan <>
Cc: Dave Young <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 14fcc23f
......@@ -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;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment