mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
__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>
This commit is contained in:
parent
14fcc23fdc
commit
4d9c377c81
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue