summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-05 23:09:25 -0800
committerHideaki Yoshifuji <yoshfuji@linux-ipv6.org>2004-02-05 23:09:25 -0800
commit353131f37e48c775ed37e18eafd7a570d0feac15 (patch)
tree3e037f88e0b854b03d35700910e54b57a55b2da5 /include/linux
parentf8c11435c19d5cee964370d8fd62d397f2b4c212 (diff)
[NET]: Simply net_ratelimit().
Reimplement net_ratelimit() in terms of the new printk_ratelimit(). As net_ratelimit() already has it own sysctls we generalise printk_ratelimit() a bit so that networking does not lose its existing sysctls and so that it can use different time constants from the more generic printk_ratelimit().
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/kernel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 6365a4159514..228182715b1d 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -90,6 +90,7 @@ asmlinkage int printk(const char * fmt, ...)
unsigned long int_sqrt(unsigned long);
extern int printk_ratelimit(void);
+extern int __printk_ratelimit(int ratelimit_jiffies, int ratelimit_burst);
static inline void console_silent(void)
{