Please sign in to comment.
printk: allocate kernel log buffer earlier
On larger systems, because of the numerous ACPI, Bootmem and EFI messages, the static log buffer overflows before the larger one specified by the log_buf_len param is allocated. Minimize the overflow by allocating the new log buffer as soon as possible. On kernels without memblock, a later call to setup_log_buf from kernel/init.c is the fallback. [firstname.lastname@example.org: coding-style fixes] [email@example.com: fix CONFIG_PRINTK=n build] Signed-off-by: Mike Travis <firstname.lastname@example.org> Cc: Yinghai Lu <email@example.com> Cc: "H. Peter Anvin" <firstname.lastname@example.org> Cc: Jack Steiner <email@example.com> Cc: Thomas Gleixner <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
- Loading branch information...
Showing with 68 additions and 29 deletions.