Messages in this thread | | | Date | Sun, 27 Feb 2011 13:15:18 +0100 | From | Ingo Molnar <> | Subject | Re: [PATCH 1/4] printk: Allocate kernel log buffer earlier |
| |
* Ingo Molnar <mingo@elte.hu> wrote:
> You could avoid all this ugly workaround of bootmem limitations by moving the > allocation to memblock_alloc() and desupporting the log_buf_len= boot parameter on > non-memblock architectures.
memblock_alloc() could return -ENOSYS on architectures that do not implement it - thus enabling such optional features without ugly #ifdef CONFIG_HAVE_MEMBLOCK conditionals.
Thanks,
Ingo
| |