diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-02-05 23:09:25 -0800 |
|---|---|---|
| committer | Hideaki Yoshifuji <yoshfuji@linux-ipv6.org> | 2004-02-05 23:09:25 -0800 |
| commit | 353131f37e48c775ed37e18eafd7a570d0feac15 (patch) | |
| tree | 3e037f88e0b854b03d35700910e54b57a55b2da5 /include | |
| parent | f8c11435c19d5cee964370d8fd62d397f2b4c212 (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')
| -rw-r--r-- | include/linux/kernel.h | 1 |
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) { |
