xen/arm: smpboot: drop unneeded code when identifying cpuinfo
authorPeng Fan <van.freenix@gmail.com>
Fri, 2 Sep 2016 09:41:41 +0000 (17:41 +0800)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 15 Sep 2016 01:28:35 +0000 (18:28 -0700)
The current_cpu_data indicates the cpuinfo for the current cpu.
There is no need to fill the current_cpu_data from boot_cpu_data,
because the following call to identify_cpu will override it.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/smpboot.c

index d56b91d519cdee232e4b44131736404ea57c4391..90ad1d0347ebeed1d308900b64cde0e3fa5db2fe 100644 (file)
@@ -288,7 +288,6 @@ void start_secondary(unsigned long boot_phys_offset,
 
     set_processor_id(cpuid);
 
-    current_cpu_data = boot_cpu_data;
     identify_cpu(&current_cpu_data);
 
     init_traps();