mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
kernel/printk/printk.c: enable boot delay for earlyprintk
boot_delay does not work for earlyprintk because the kernel cmdline parsing is late. Change to use early_param so early kernel messages can also be delayed. Signed-off-by: Dave Young <dyoung@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
312b4e2269
commit
29e9d22559
@ -820,9 +820,9 @@ static int __init boot_delay_setup(char *str)
|
|||||||
pr_debug("boot_delay: %u, preset_lpj: %ld, lpj: %lu, "
|
pr_debug("boot_delay: %u, preset_lpj: %ld, lpj: %lu, "
|
||||||
"HZ: %d, loops_per_msec: %llu\n",
|
"HZ: %d, loops_per_msec: %llu\n",
|
||||||
boot_delay, preset_lpj, lpj, HZ, loops_per_msec);
|
boot_delay, preset_lpj, lpj, HZ, loops_per_msec);
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
__setup("boot_delay=", boot_delay_setup);
|
early_param("boot_delay", boot_delay_setup);
|
||||||
|
|
||||||
static void boot_delay_msec(int level)
|
static void boot_delay_msec(int level)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user