aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/proc.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-03-06 16:46:39 -0500
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:40:58 -0400
commit01aaea1afbcdb7c49fe4a567ebe3e295db9f720d (patch)
tree21974b32aad2b004d2ac67bf5ee7d8812d0d30cd /arch/x86/kernel/cpu/proc.c
parent459cce726730ca0ac93701e53aa1d0d055ce9e90 (diff)
x86: introduce initial apicid
store initial_apicid from early identify. it is could be different from phys_proc_id later. also print it out in /proc/cpuinfo. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/proc.c')
-rw-r--r--arch/x86/kernel/cpu/proc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/proc.c b/arch/x86/kernel/cpu/proc.c
index e8e58c09625d..0978a4a39418 100644
--- a/arch/x86/kernel/cpu/proc.c
+++ b/arch/x86/kernel/cpu/proc.c
@@ -19,6 +19,8 @@ static void show_cpuinfo_core(struct seq_file *m, struct cpuinfo_x86 *c,
19 cpus_weight(per_cpu(cpu_core_map, cpu))); 19 cpus_weight(per_cpu(cpu_core_map, cpu)));
20 seq_printf(m, "core id\t\t: %d\n", c->cpu_core_id); 20 seq_printf(m, "core id\t\t: %d\n", c->cpu_core_id);
21 seq_printf(m, "cpu cores\t: %d\n", c->booted_cores); 21 seq_printf(m, "cpu cores\t: %d\n", c->booted_cores);
22 seq_printf(m, "apicid\t\t: %d\n", c->apicid);
23 seq_printf(m, "initial apicid\t: %d\n", c->initial_apicid);
22 } 24 }
23#endif 25#endif
24} 26}
@@ -60,6 +62,7 @@ static void show_cpuinfo_core(struct seq_file *m, struct cpuinfo_x86 *c,
60 seq_printf(m, "core id\t\t: %d\n", c->cpu_core_id); 62 seq_printf(m, "core id\t\t: %d\n", c->cpu_core_id);
61 seq_printf(m, "cpu cores\t: %d\n", c->booted_cores); 63 seq_printf(m, "cpu cores\t: %d\n", c->booted_cores);
62 seq_printf(m, "apicid\t\t: %d\n", c->apicid); 64 seq_printf(m, "apicid\t\t: %d\n", c->apicid);
65 seq_printf(m, "initial apicid\t: %d\n", c->initial_apicid);
63 } 66 }
64#endif 67#endif
65} 68}