diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2007-10-16 04:23:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:42:49 -0400 |
commit | bfe8df3d314bddf30758bd738e0087e80964760c (patch) | |
tree | d04db4fb2592e2d416073681903f05f5b30f204b /Documentation | |
parent | 1bcf548293aef19b0797348332cf1dfbf2116cef (diff) |
slow down printk during boot
Optionally add a boot delay after each kernel printk() call, crudely
measured in milliseconds, with a maximum delay of 10 seconds per printk.
Enable CONFIG_BOOT_PRINTK_DELAY=y and then add (e.g.):
"lpj=loops_per_jiffy boot_delay=100"
to the kernel command line.
It has been useful in cases like "during boot, my machine just reboots or the
screen goes black" by slowing down printk, (and adding initcall_debug), we can
usually see the last thing that happened before the lights went out which is
usually a valuable clue.
[akpm@linux-foundation.org: not all architectures implement CONFIG_HZ]
[akpm@linux-foundation.org: fix lots of stuff]
[bunk@stusta.de: kernel/printk.c: make 2 variables static]
[heiko.carstens@de.ibm.com: fix slow down printk on boot compile error]
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/kernel-parameters.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 085e4a095eaa..760ed5776174 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -349,6 +349,11 @@ and is between 256 and 4096 characters. It is defined in the file | |||
349 | blkmtd_bs= | 349 | blkmtd_bs= |
350 | blkmtd_count= | 350 | blkmtd_count= |
351 | 351 | ||
352 | boot_delay= Milliseconds to delay each printk during boot. | ||
353 | Values larger than 10 seconds (10000) are changed to | ||
354 | no delay (0). | ||
355 | Format: integer | ||
356 | |||
352 | bttv.card= [HW,V4L] bttv (bt848 + bt878 based grabber cards) | 357 | bttv.card= [HW,V4L] bttv (bt848 + bt878 based grabber cards) |
353 | bttv.radio= Most important insmod options are available as | 358 | bttv.radio= Most important insmod options are available as |
354 | kernel args too. | 359 | kernel args too. |