From: Julien Grall Date: Mon, 29 Jul 2013 13:42:13 +0000 (+0100) Subject: xen/arm: Clean up identify processor call for secondary cpus X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6600 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cda3deadd4d67ae9d9e8a694774bd3f6cb0c3943;p=xen.git xen/arm: Clean up identify processor call for secondary cpus The smp_processor_id() is set at the beginning of start_secondary. We don't need to compute ourself the offset of the cpu data. Signed-off-by: Julien Grall Acked-by: Ian Campbell --- diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c index 5895178213..b6aea63e18 100644 --- a/xen/arch/arm/smpboot.c +++ b/xen/arch/arm/smpboot.c @@ -137,15 +137,13 @@ void __cpuinit start_secondary(unsigned long boot_phys_offset, unsigned long fdt_paddr, unsigned long cpuid) { - struct cpuinfo_arm *c = cpu_data + cpuid; - memset(get_cpu_info(), 0, sizeof (struct cpu_info)); /* TODO: handle boards where CPUIDs are not contiguous */ set_processor_id(cpuid); - *c = boot_cpu_data; - identify_cpu(c); + current_cpu_data = boot_cpu_data; + identify_cpu(¤t_cpu_data); init_traps();