[PATCH] x86_64: cleanup allocating logical cpu numbers in x86_64
authorAshok Raj <ashok.raj@intel.com>
Sat, 25 Mar 2006 15:29:28 +0000 (16:29 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 17:10:53 +0000 (09:10 -0800)
commit51f62e186b78f8743246a349b09be370c8735479
treee8b4f95445a581c3844beafb45654cefff5c490d
parent45948d7720e8bd0104696087c6305fdd90e3b298
[PATCH] x86_64: cleanup allocating logical cpu numbers in x86_64

Minor cleanup to lend better for physical CPU hotplug.
Earlier way of using num_processors as index doesnt
fit if CPUs come and go. This makes the code little bit better
to read, and helps physical hotplug use the same functions as boot.

Reserving CPU0 for BSP is too late to be done in smp_prepare_boot_cpu().
Since logical assignments from MADT is already done via
setup_arch()->acpi_boot_init()->parse lapic

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/mpparse.c
arch/x86_64/kernel/setup.c