android_kernel_xiaomi_sm8350/include/asm-x86/mach-default
Siddha, Suresh B 58d5fa7a6a i386: fix 4 bit apicid assumption of mach-default
Fix get_apic_id() in mach-default, so that it uses 8 bits incase of
xAPIC case and 4 bits for legacy APIC case.

This fixes the i386 kernel assumption that apic id is less than 16 for
xAPIC platforms with 8 cpus or less and makes the kernel boot on such
platforms.

[ tglx: arch/x86 adaptation ]

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-10-17 20:15:24 +02:00
..
apm.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
bios_ebda.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
do_timer.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
entry_arch.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
io_ports.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
irq_vectors_limits.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
irq_vectors.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
mach_apic.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
mach_apicdef.h i386: fix 4 bit apicid assumption of mach-default 2007-10-17 20:15:24 +02:00
mach_ipi.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
mach_mpparse.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
mach_mpspec.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
mach_reboot.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
mach_time.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
mach_timer.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
mach_traps.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
mach_wakecpu.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
pci-functions.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
setup_arch.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
smpboot_hooks.h i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00