diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2012-10-12 20:00:23 +0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2012-11-18 04:01:49 +0400 |
commit | 74876a98a87a115254b3a66a14b27320b7f0acaa (patch) | |
tree | 06ed1cff8a92b0c687a7ff2fe31c19e8249bbe3c /include/linux/printk.h | |
parent | bc6679aef673f9dcb8f718528fc3df49ff661af9 (diff) | |
download | linux-74876a98a87a115254b3a66a14b27320b7f0acaa.tar.xz |
printk: Wake up klogd using irq_work
klogd is woken up asynchronously from the tick in order
to do it safely.
However if printk is called when the tick is stopped, the reader
won't be woken up until the next interrupt, which might not fire
for a while. As a result, the user may miss some message.
To fix this, lets implement the printk tick using a lazy irq work.
This subsystem takes care of the timer tick state and can
fix up accordingly.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'include/linux/printk.h')
-rw-r--r-- | include/linux/printk.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h index 9afc01e5a0a6..86c4b6294713 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h @@ -98,9 +98,6 @@ int no_printk(const char *fmt, ...) extern asmlinkage __printf(1, 2) void early_printk(const char *fmt, ...); -extern int printk_needs_cpu(int cpu); -extern void printk_tick(void); - #ifdef CONFIG_PRINTK asmlinkage __printf(5, 0) int vprintk_emit(int facility, int level, |