Merge branch 'core-printk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-printk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: ratelimit: Make suppressed output messages more useful printk: Remove ratelimit.h from kernel.h ratelimit: Fix/allow use in atomic contexts ratelimit: Use per ratelimit context locking
This commit is contained in:
@ -33,6 +33,7 @@
|
||||
#include <linux/bootmem.h>
|
||||
#include <linux/syscalls.h>
|
||||
#include <linux/kexec.h>
|
||||
#include <linux/ratelimit.h>
|
||||
|
||||
#include <asm/uaccess.h>
|
||||
|
||||
@ -1376,11 +1377,11 @@ late_initcall(disable_boot_consoles);
|
||||
*/
|
||||
DEFINE_RATELIMIT_STATE(printk_ratelimit_state, 5 * HZ, 10);
|
||||
|
||||
int printk_ratelimit(void)
|
||||
int __printk_ratelimit(const char *func)
|
||||
{
|
||||
return __ratelimit(&printk_ratelimit_state);
|
||||
return ___ratelimit(&printk_ratelimit_state, func);
|
||||
}
|
||||
EXPORT_SYMBOL(printk_ratelimit);
|
||||
EXPORT_SYMBOL(__printk_ratelimit);
|
||||
|
||||
/**
|
||||
* printk_timed_ratelimit - caller-controlled printk ratelimiting
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include <linux/sysrq.h>
|
||||
#include <linux/highuid.h>
|
||||
#include <linux/writeback.h>
|
||||
#include <linux/ratelimit.h>
|
||||
#include <linux/hugetlb.h>
|
||||
#include <linux/initrd.h>
|
||||
#include <linux/key.h>
|
||||
@ -158,6 +159,8 @@ extern int no_unaligned_warning;
|
||||
extern int unaligned_dump_stack;
|
||||
#endif
|
||||
|
||||
extern struct ratelimit_state printk_ratelimit_state;
|
||||
|
||||
#ifdef CONFIG_RT_MUTEXES
|
||||
extern int max_lock_depth;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user