Skip to contentSkip to conversation

xen/arm: smpboot: drop unneeded code in start_secondary

PATCH In review Peng Fan 3 participants 3 messages May 19, 2016

lore
Share & tools
lore

Peng Fan

author
#0 lore raw

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.

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 c5109bf..6b3c157 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw

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_cpu and flush cache. After the secondary CPU boots up,

NIT: s/the/a/

Quoted 9 lines

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.

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 c5109bf..6b3c157 100644
@@ -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
#2 lore raw
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_cpu and flush cache. After the secondary CPU boots up,

NIT: s/the/a/

Quoted 3 lines

CPU0 will assign MPIDR_INVALID to smp_up_cpu and flush cache.

Quoted 8 lines
Quoted 6 lines

There is no need for secondary CPUs to assign MPIDR_INVALID to smp_up_cpu. So, drop it.

Cc Julien Grall <[email protected]>
Cc Stefano Stabellini <[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
index c5109bf..6b3c157 100644
@@ -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