]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: introduce max_physical_apicid for bigsmp switching
authorYinghai Lu <yhlu.kernel@gmail.com>
Mon, 9 Jun 2008 01:29:22 +0000 (18:29 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 10 Jun 2008 09:32:09 +0000 (11:32 +0200)
commite0da33646826b66ef933d47ea2fb7a693fd849bf
tree398d86b96531e574c4710ea1538806b7e0ae0fef
parentc3ff01672a23fabb40d4b80ff25a845582fd07c2
x86: introduce max_physical_apicid for bigsmp switching

a multi-socket test-system with 3 or 4 ioapics, when 4 dualcore cpus or
2 quadcore cpus installed, needs to switch to bigsmp or physflat.

CPU apic id is [4,11] instead of [0,7], and we need to check max apic
id instead of cpu numbers.

also add check for 32 bit when acpi is not compiled in or acpi=off.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic_32.c
arch/x86/kernel/apic_64.c
arch/x86/kernel/genapic_64.c
arch/x86/kernel/mpparse.c
arch/x86/kernel/setup.c
arch/x86/kernel/setup_32.c
arch/x86/mach-generic/bigsmp.c
include/asm-x86/mpspec.h