Re: [PATCH] UV: memory allocation at initialization

From: Ingo Molnar
Date: Mon Oct 27 2008 - 09:18:01 EST



* Cliff Wickman <cpw@xxxxxxx> wrote:

> From: Cliff Wickman <cpw@xxxxxxx>
>
> UV initialization is currently called too late to call alloc_bootmem_pages().
> The current sequence is:
>
> start_kernel()
> mem_init()
> free_all_bootmem() <--- discard of bootmem
> rest_init()
> kernel_init()
> smp_prepare_cpus()
> native_smp_prepare_cpus()
> uv_system_init() <--- uses alloc_bootmem_pages()
>
> It should be calling kmalloc().
>
> Diffed against 2.6.27 (linux-next)
>
> Signed-off-by: Cliff Wickman <cpw@xxxxxxx>
> ---
> arch/x86/kernel/genx2apic_uv_x.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)

applied to tip/x86/urgent, thanks Cliff!

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/