]> git.baikalelectronics.ru Git - kernel.git/commit
smp, generic: introduce arch_disable_smp_support() instead of disable_ioapic_setup()
authorIngo Molnar <mingo@elte.hu>
Sat, 31 Jan 2009 02:36:17 +0000 (03:36 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 5 Feb 2009 21:27:54 +0000 (22:27 +0100)
commit0de6920836649c727bb58528602fc59354b0b31c
treed265ad2f64a3ae35ee3a9ad43b8c55b0e87f6c99
parentcc427acb1ff8004a31f0fc1a49b48304b9d4c0cb
smp, generic: introduce arch_disable_smp_support() instead of disable_ioapic_setup()

Impact: cleanup

disable_ioapic_setup() in init/main.c is ugly as the function is
x86-specific. The #ifdef inline prototype there is ugly too.

Replace it with a generic arch_disable_smp_support() function - which
has a weak alias for non-x86 architectures and for non-ioapic x86 builds.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/io_apic.h
arch/x86/kernel/apic.c
arch/x86/kernel/io_apic.c
arch/x86/kernel/smpboot.c
include/linux/smp.h
init/main.c