diff options
| author | Ingo Molnar <[email protected]> | 2009-09-22 14:18:09 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-09-22 14:18:09 +0000 |
| commit | 3fff4c42bd0a89869a0eb1e7874cc06ffa4aa0f5 (patch) | |
| tree | 67c476b8aa52a2f5d17dc9b94da360e10d373bd5 /net/core/utils.c | |
| parent | ratelimit: Fix/allow use in atomic contexts (diff) | |
| download | kernel-3fff4c42bd0a89869a0eb1e7874cc06ffa4aa0f5.tar.gz kernel-3fff4c42bd0a89869a0eb1e7874cc06ffa4aa0f5.zip | |
printk: Remove ratelimit.h from kernel.h
Decouple kernel.h from ratelimit.h: the global declaration of
printk's ratelimit_state is not needed, and it leads to messy
circular dependencies due to ratelimit.h's (new) adding of a
spinlock_types.h include.
Cc: Peter Zijlstra <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: David S. Miller <[email protected]>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/core/utils.c')
| -rw-r--r-- | net/core/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/utils.c b/net/core/utils.c index 83221aee7084..838250241d26 100644 --- a/net/core/utils.c +++ b/net/core/utils.c @@ -24,6 +24,8 @@ #include <linux/types.h> #include <linux/percpu.h> #include <linux/init.h> +#include <linux/ratelimit.h> + #include <net/sock.h> #include <asm/byteorder.h> |
