isolate ratelimit from printk.c for other use
authorDave Young <hidave.darkstar@gmail.com>
Tue, 29 Apr 2008 07:59:43 +0000 (00:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:06 +0000 (08:06 -0700)
commit5f97a5a8799b8d7d0afdb9d68a50a4e0e8298a05
tree03f0a35e50e9a765603fc9249e601b52e043fd0d
parent762873c251b056c6c1b29e83a4dabafb064e5421
isolate ratelimit from printk.c for other use

Due to the rcupreempt.h WARN_ON trigged, I got 2G syslog file.  For some
serious complaining of kernel, we need repeat the warnings, so here I isolate
the ratelimit part of printk.c to a standalone file.

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kernel.h
kernel/printk.c
lib/Makefile
lib/ratelimit.c [new file with mode: 0644]