x86: dt: Cleanup local apic setup
authorThomas Gleixner <tglx@linutronix.de>
Fri, 25 Feb 2011 15:09:31 +0000 (16:09 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 25 Feb 2011 15:18:52 +0000 (16:18 +0100)
commita906fdaacca49917d83e5032dfc31f694249ad10
tree6b00061e1db64f5f2767c129b666ee25487fd59e
parent4a66b1d95ad8baf6ab884a1c64461449b463eb78
x86: dt: Cleanup local apic setup

Up to now we force enable the local apic in the devicetree setup
uncoditionally and set smp_found_config unconditionally to 1 when a
devicetree blob is available. This breaks, when local apic is disabled
in the Kconfig.

Make it consistent by initializing device tree explicitely before
smp_get_config() so a non lapic configuration could be used as well.
To be functional that would require to implement PIT as an interrupt
host, but the only user of this code until now is ce4100 which
requires apics to be available. So we leave this up to those who need
it.

Tested-by: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/apic.h
arch/x86/include/asm/prom.h
arch/x86/kernel/apic/apic.c
arch/x86/kernel/devicetree.c
arch/x86/kernel/setup.c
arch/x86/platform/ce4100/ce4100.c