]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit4580fe6543b42a7807e69d63dd0702a6937c664b
treee8b4f95445a581c3844beafb45654cefff5c490d
parent3159653e1e4e4a8693656f32e15028829216da5a
[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