aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2005-05-17 00:53:26 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-17 10:59:14 -0400
commit2942283e970b357c146ebdcbbcc0bdf5048615ff (patch)
tree44f6f599f93f85a8bdb550fc7f74838e1d4fd2fd /arch/x86_64
parentdda50e716dc9451f40eebfb2902c260e4f62cf34 (diff)
[PATCH] x86_64: Remove x86_apicid field
Remove x86_apicid field Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/kernel/setup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c
index aab249a57464..966dfc768cba 100644
--- a/arch/x86_64/kernel/setup.c
+++ b/arch/x86_64/kernel/setup.c
@@ -727,7 +727,7 @@ static void __init display_cacheinfo(struct cpuinfo_x86 *c)
727static void __init amd_detect_cmp(struct cpuinfo_x86 *c) 727static void __init amd_detect_cmp(struct cpuinfo_x86 *c)
728{ 728{
729#ifdef CONFIG_SMP 729#ifdef CONFIG_SMP
730 int cpu = c->x86_apicid; 730 int cpu = smp_processor_id();
731 int node = 0; 731 int node = 0;
732 if (c->x86_num_cores == 1) 732 if (c->x86_num_cores == 1)
733 return; 733 return;
@@ -929,7 +929,6 @@ void __init early_identify_cpu(struct cpuinfo_x86 *c)
929 c->x86_clflush_size = 64; 929 c->x86_clflush_size = 64;
930 c->x86_cache_alignment = c->x86_clflush_size; 930 c->x86_cache_alignment = c->x86_clflush_size;
931 c->x86_num_cores = 1; 931 c->x86_num_cores = 1;
932 c->x86_apicid = c == &boot_cpu_data ? 0 : c - cpu_data;
933 c->extended_cpuid_level = 0; 932 c->extended_cpuid_level = 0;
934 memset(&c->x86_capability, 0, sizeof c->x86_capability); 933 memset(&c->x86_capability, 0, sizeof c->x86_capability);
935 934
@@ -958,7 +957,6 @@ void __init early_identify_cpu(struct cpuinfo_x86 *c)
958 } 957 }
959 if (c->x86_capability[0] & (1<<19)) 958 if (c->x86_capability[0] & (1<<19))
960 c->x86_clflush_size = ((misc >> 8) & 0xff) * 8; 959 c->x86_clflush_size = ((misc >> 8) & 0xff) * 8;
961 c->x86_apicid = misc >> 24;
962 } else { 960 } else {
963 /* Have CPUID level 0 only - unheard of */ 961 /* Have CPUID level 0 only - unheard of */
964 c->x86 = 4; 962 c->x86 = 4;