]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] x86_64/i386: fix defaults for physical/core id in /proc/cpuinfo
authorAndi Kleen <ak@suse.de>
Tue, 17 May 2005 04:53:21 +0000 (21:53 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 17 May 2005 14:59:13 +0000 (07:59 -0700)
commitcbda0f723bd6398b33bc0df433115ed294470477
treebccf6f173d6ddcb24aff243573086475b25dfe93
parentd8dcab5f445f556f63ae819b2a52063eed25da5c
[PATCH] x86_64/i386: fix defaults for physical/core id in /proc/cpuinfo

Last round hopefully of cpu_core_id changes hopefully fow now:

- Always initialize cpu_core_id for all CPUs, even when no dual core setup
  is detected.  This prevents funny /proc/cpuinfo output

- Do the same with phys_proc_id[] even when no HyperThreading - dito.

- Use the CPU APIC-ID from CPUID 1 instead of the linux virtual CPU number
  to identify the core for AMD dual core setups.

Patch for i386/x86-64.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/cpu/amd.c
arch/i386/kernel/cpu/common.c
arch/x86_64/kernel/setup.c