]> git.karo-electronics.de Git - linux-beck.git/commit
x86: Move find_smp_config() earlier and avoid bootmem usage
authorYinghai Lu <yinghai@kernel.org>
Tue, 24 Nov 2009 10:48:18 +0000 (02:48 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 24 Nov 2009 11:10:51 +0000 (12:10 +0100)
commitb24c2a925a9837cccf54d50aeac22ba0cbc15455
tree41da574f9dd4c39c290fd0480cb615d808b84cb5
parenteb41c8be89dbe079f49202774e04a79ccac48a09
x86: Move find_smp_config() earlier and avoid bootmem usage

Move the find_smp_config() call to before bootmem is initialized.
Use reserve_early() instead of reserve_bootmem() in it.

This simplifies the code, we only need to call find_smp_config()
once and can remove the now unneeded reserve parameter from
x86_init_mpparse::find_smp_config.

We thus also reduce x86's dependency on bootmem allocations.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <4B0BB9F2.70907@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/mpspec.h
arch/x86/include/asm/x86_init.h
arch/x86/kernel/apic/numaq_32.c
arch/x86/kernel/mpparse.c
arch/x86/kernel/setup.c
arch/x86/kernel/visws_quirks.c
arch/x86/mm/k8topology_64.c