xen/arm: smpboot: drop unneeded code in start_secondary
PATCH 1/1 xen/arm: smpboot: drop unneeded code in start_secondary
CPU0 boots up secondary CPUs one by one. Before booting one secondary CPU, CPU0 will assign hwid to smp_up_cpu and flush cache. After the secondary CPU boots up, CPU0 will assign MPIDR_INVALID to smp_up_cpu and flush cache.
There is no need for secondary CPUs to assign MPIDR_INVALID to smp_up_cpu. So, drop it.
--- xen/arch/arm/smpboot.c | 1 - 1 file changed, 1 deletion(-)
xen/arch/arm/smpboot.c +0 -1
@@ -309,7 +309,6 @@ void start_secondary(unsigned long boot_phys_offset,smp_wmb ();/* Now report this CPU is up */ - smp_up_cpu =MPIDR_INVALID ;cpumask_set_cpu (cpuid, &cpu_online_map);smp_wmb ();
Signature · 7 lines
2.6.2 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Hi Peng,
Quoted 3 lines · Peng Fan
CPU0 boots up secondary CPUs one by one. Before booting one secondary CPU, CPU0 will assign hwid to
smp_up_cpuand flush cache. After the secondary CPU boots up,
NIT: s/the/a/
Quoted 9 lines
CPU0 will assign
MPIDR_INVALIDtosmp_up_cpuand flush cache.There is no need for secondary CPUs to assign
MPIDR_INVALIDtosmp_up_cpu. So, drop it.Signed-off-by Peng Fan <[email protected]>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@@ -309,7 +309,6 @@ void start_secondary(unsigned long boot_phys_offset,smp_wmb ();/* Now report this CPU is up */ - smp_up_cpu =MPIDR_INVALID ;cpumask_set_cpu (cpuid, &cpu_online_map);smp_wmb ();
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Quoted 12 lines · Julien Grall
Hi Peng,
Quoted 3 lines · Peng Fan
CPU0 boots up secondary CPUs one by one. Before booting one secondary CPU, CPU0 will assign hwid to
smp_up_cpuand flush cache. After the secondary CPU boots up,NIT: s/the/a/
Quoted 3 lines
CPU0 will assign
MPIDR_INVALIDtosmp_up_cpuand flush cache.
Quoted 8 lines
Quoted 6 lines
There is no need for secondary CPUs to assign
MPIDR_INVALIDtosmp_up_cpu. So, drop it.Signed-off-by Peng Fan <[email protected]>Cc Julien Grall <[email protected]>Cc Stefano Stabellini <[email protected]>Reviewed-by Julien Grall <[email protected]>
This is a cleanup, no need to commit it now. I'll add it to the 4.8 branch.
Quoted 12 lines
Quoted 12 lines
--- xen/arch/arm/smpboot.c | 1 - 1 file changed, 1 deletion(-)xen/arch/arm/smpboot.c +0
-0@@ -309,7 +309,6 @@ void start_secondary(unsigned long boot_phys_offset,smp_wmb ();
Quoted 10 lines
Quoted 6 lines
xen/arch/arm/smpboot.c +0
-1/* Now report this CPU is up */ - smp_up_cpu =MPIDR_INVALID ;cpumask_set_cpu (cpuid, &cpu_online_map);smp_wmb ();Signature · 1 line
Julien Grall
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel