aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-09-22 10:18:09 -0400
committerIngo Molnar <mingo@elte.hu>2009-09-22 10:18:09 -0400
commit3fff4c42bd0a89869a0eb1e7874cc06ffa4aa0f5 (patch)
tree67c476b8aa52a2f5d17dc9b94da360e10d373bd5 /kernel/sysctl.c
parentedaac8e3167501cda336231d00611bf59c164346 (diff)
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 <a.p.zijlstra@chello.nl> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: David S. Miller <davem@davemloft.net> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 1a631ba684a4..6c37048b9db9 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -37,6 +37,7 @@
37#include <linux/sysrq.h> 37#include <linux/sysrq.h>
38#include <linux/highuid.h> 38#include <linux/highuid.h>
39#include <linux/writeback.h> 39#include <linux/writeback.h>
40#include <linux/ratelimit.h>
40#include <linux/hugetlb.h> 41#include <linux/hugetlb.h>
41#include <linux/initrd.h> 42#include <linux/initrd.h>
42#include <linux/key.h> 43#include <linux/key.h>
@@ -155,6 +156,8 @@ extern int no_unaligned_warning;
155extern int unaligned_dump_stack; 156extern int unaligned_dump_stack;
156#endif 157#endif
157 158
159extern struct ratelimit_state printk_ratelimit_state;
160
158#ifdef CONFIG_RT_MUTEXES 161#ifdef CONFIG_RT_MUTEXES
159extern int max_lock_depth; 162extern int max_lock_depth;
160#endif 163#endif