diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-06-19 17:33:31 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-11-19 22:01:21 -0500 |
commit | afdc34a3d3b823a12a93b822ee1efb566f884032 (patch) | |
tree | d770a2806476751adba361918edb8826762db730 /drivers/accessibility | |
parent | 8d58e99af5980d444948720977b0976455885391 (diff) | |
download | linux-stable-afdc34a3d3b823a12a93b822ee1efb566f884032.tar.gz linux-stable-afdc34a3d3b823a12a93b822ee1efb566f884032.tar.bz2 linux-stable-afdc34a3d3b823a12a93b822ee1efb566f884032.zip |
printk: Add per_cpu printk func to allow printk to be diverted
Being able to divert printk to call another function besides the normal
logging is useful for such things like NMI handling. If some functions
are to be called from NMI that does printk() it is possible to lock up
the box if the nmi handler triggers when another printk is happening.
One example of this use is to perform a stack trace on all CPUs via NMI.
But if the NMI is to do the printk() it can cause the system to lock up.
By allowing the printk to be diverted to another function that can safely
record the printk output and then print it when it in a safe context
then NMIs will be safe to call these functions like show_regs().
Link: http://lkml.kernel.org/p/20140619213952.209176403@goodmis.org
Tested-by: Jiri Kosina <jkosina@suse.cz>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'drivers/accessibility')
0 files changed, 0 insertions, 0 deletions