android_kernel_xiaomi_sm8350/arch/x86
Yinghai Lu a706221186 x86: fix amd_detect_cmp
for system with apicid lifting, boot cpu apicid will be 4

got:

  CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
  CPU: L2 Cache: 512K (64 bytes/line)
  CPU 0/4 -> Node 0
  CPU: Physical Processor ID: 1
  CPU: Processor Core ID: 0

so try to offset apicid back before get phys_proc_id with bits shift.
then we can get correct socket ID

also remove remove cpu_data(0) reference.

because cpu_data(0) only be ready after smp_prepare_cpus with the assignment
from boot_cpu_data to current_cpu_data aka cpu_data(0).

and check_bugs()==>identify_cpu(&boot_cpu_data) is quite before than
smp_prepare_cpus. So just use boot_cpu_id instead.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-04-17 17:40:57 +02:00
..
boot x86: coding style fixes to arch/x86/boot/cpucheck.c 2008-04-17 17:40:50 +02:00
configs
crypto
ia32 x86: reducing debuginfo size by removing unneeded includes 2008-04-17 17:40:46 +02:00
kernel x86: fix amd_detect_cmp 2008-04-17 17:40:57 +02:00
kvm KVM: MMU: Fix memory leak on guest demand faults 2008-03-25 10:22:17 +02:00
lguest lguest: comment documentation update. 2008-03-28 11:05:54 +11:00
lib x86: coding style fixes to arch/x86/lib/usercopy_32.c 2008-04-17 17:40:51 +02:00
mach-default
mach-es7000
mach-generic x86: coding style fixes to arch/x86/mach-generic/bigsmp.c 2008-04-17 17:40:48 +02:00
mach-rdc321x x86, rdc321x: remove watchdog file 2008-04-17 17:40:50 +02:00
mach-visws x86/visws: fix printk format warnings 2008-03-21 17:06:15 +01:00
mach-voyager x86: adapt voyager's setup_trampoline 2008-04-17 17:40:57 +02:00
math-emu
mm x86: debug pmd_bad() 2008-04-17 17:40:52 +02:00
oprofile x86: coding style fixes to arch/x86/oprofile/nmi_timer_int.c 2008-04-17 17:40:50 +02:00
pci x86, pci: fix off-by-one errors in some pirq warnings 2008-04-17 17:40:45 +02:00
power x86: coding style fixes to arch/x86/power/cpu_32.c 2008-04-17 17:40:50 +02:00
vdso x86 vDSO: don't map 32-bit vdso when disabled 2008-04-17 17:40:45 +02:00
video
xen xen: use iret instruction all the time 2008-04-17 17:40:51 +02:00
Kconfig x86: fix recursive dependencies 2008-04-17 17:40:51 +02:00
Kconfig.cpu x86: a P4 is a P6 not an i486 2008-03-04 11:55:34 -08:00
Kconfig.debug x86: add gbpages switches 2008-04-17 17:40:45 +02:00
Makefile x86: introduce kernel/head32.c 2008-04-17 17:40:49 +02:00
Makefile_32.cpu