Skip to contentSkip to conversation

xen/arm: smpboot: drop unneeded code when identifying cpuinfo

PATCH In review Peng Fan 2 participants 2 messages Sep 2, 2016 – Sep 9, 2016

lore
Share & tools
lore

Peng Fan

author
#0 lore raw

PATCH 1/1 xen/arm: smpboot: drop unneeded code when identifying cpuinfo

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.

Cc Julien Grall <[email protected]>
Cc Stefano Stabellini <[email protected]>
---
 xen/arch/arm/smpboot.c | 1 -
 1 file changed, 1 deletion(-)
xen/arch/arm/smpboot.c +0 -1
index d56b91d..90ad1d0 100644
@@ -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();
Signature · 7 lines
2.6.2


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v1 1/1
#1 lore raw

Hello Peng,

Quoted 7 lines · Peng Fan

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.

Cc Julien Grall <[email protected]>
Cc Stefano Stabellini <[email protected]>

Regards,

Quoted 17 lines
---
 xen/arch/arm/smpboot.c | 1 -
 1 file changed, 1 deletion(-)
xen/arch/arm/smpboot.c +0 -1
index d56b91d..90ad1d0 100644
@@ -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();
Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel