]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
xen smpboot: Fix a merge oversight.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 6 Dec 2007 15:44:05 +0000 (15:44 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 6 Dec 2007 15:44:05 +0000 (15:44 +0000)
Signed-off-by: Jan Beulich <jbeulich@novell.com>
drivers/xen/core/smpboot.c

index 3ea0309c88704450396570a29f7a62480f5dfe2c..6931c97c78902508bc4e47d6ff8c45e19c7648e2 100644 (file)
@@ -38,10 +38,6 @@ extern void smp_trap_init(trap_info_t *);
 
 /* Number of siblings per CPU package */
 int smp_num_siblings = 1;
-int phys_proc_id[NR_CPUS]; /* Package ID of each logical CPU */
-EXPORT_SYMBOL(phys_proc_id);
-int cpu_core_id[NR_CPUS]; /* Core ID of each logical CPU */
-EXPORT_SYMBOL(cpu_core_id);
 
 cpumask_t cpu_online_map;
 EXPORT_SYMBOL(cpu_online_map);
@@ -98,8 +94,8 @@ void __init smp_alloc_memory(void)
 static inline void
 set_cpu_sibling_map(int cpu)
 {
-       phys_proc_id[cpu] = cpu;
-       cpu_core_id[cpu]  = 0;
+       cpu_data[cpu].phys_proc_id = cpu;
+       cpu_data[cpu].cpu_core_id  = 0;
 
        cpu_sibling_map[cpu] = cpumask_of_cpu(cpu);
        cpu_core_map[cpu]    = cpumask_of_cpu(cpu);
@@ -110,8 +106,8 @@ set_cpu_sibling_map(int cpu)
 static void
 remove_siblinginfo(int cpu)
 {
-       phys_proc_id[cpu] = BAD_APICID;
-       cpu_core_id[cpu]  = BAD_APICID;
+       cpu_data[cpu].phys_proc_id = BAD_APICID;
+       cpu_data[cpu].cpu_core_id  = BAD_APICID;
 
        cpus_clear(cpu_sibling_map[cpu]);
        cpus_clear(cpu_core_map[cpu]);