From: Alexey Dobriyan Date: Mon, 28 Jul 2008 22:46:21 +0000 (-0700) Subject: __ratelimit() cpu flags can't be static X-Git-Tag: v2.6.27-rc1~20 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d9c377c81d37740b25cacf025f95c084eafabbb;p=linux-2.6 __ratelimit() cpu flags can't be static Signed-off-by: Alexey Dobriyan Cc: Dave Young Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/lib/ratelimit.c b/lib/ratelimit.c index 35136671b2..26187edcc7 100644 --- a/lib/ratelimit.c +++ b/lib/ratelimit.c @@ -15,7 +15,6 @@ #include 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;