]> git.baikalelectronics.ru Git - kernel.git/commit
printk: add printk_delay to make messages readable for some scenarios
authorDave Young <hidave.darkstar@gmail.com>
Tue, 22 Sep 2009 23:43:33 +0000 (16:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Sep 2009 14:39:28 +0000 (07:39 -0700)
commit526ef322417a20c8fae41d2e52ae42ffe8ba279e
treedebba08531c7dd78b90b5d8f2c03f6bf7c9e7877
parent8f36df0d4b1e3fe132575c5cd0e72a1bb3890cb1
printk: add printk_delay to make messages readable for some scenarios

When syslog is not possible, at the same time there's no serial/net
console available, it will be hard to read the printk messages.  For
example oops/panic/warning messages in shutdown phase.

Add a printk delay feature, we can make each printk message delay some
milliseconds.

Setting the delay by proc/sysctl interface: /proc/sys/kernel/printk_delay

The value range from 0 - 10000, default value is 0

[akpm@linux-foundation.org: fix a few things]
Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/sysctl/kernel.txt
include/linux/kernel.h
kernel/printk.c
kernel/sysctl.c