Skip to contentSkip to conversation

hw/arm/npcm7xx: remove setting of mp-affinity

PATCH Applied Dorjoy Chowdhury 4 participants 4 messages May 4, 2024 – May 7, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/arm/npcm7xx: remove setting of mp-affinity

The value of the mp-affinity property being set in npcm7xx_realize is always the same as the default value it would have when arm_cpu_realizefn is called if the property is not set here. So there is no need to set the property value in npcm7xx_realize function.

---
 hw/arm/npcm7xx.c | 3 ---
 1 file changed, 3 deletions(-)
hw/arm/npcm7xx.c +0 -3
index 9f2d96c733..cb7791301b 100644
@@ -487,9 +487,6 @@ static void npcm7xx_realize(DeviceState *dev, Error **errp)
 
     /* CPUs */
     for (i = 0; i < nc->num_cpus; i++) {
-        object_property_set_int(OBJECT(&s->cpu[i]), "mp-affinity",
-                                arm_build_mp_affinity(i, NPCM7XX_MAX_NUM_CPUS),
-                                &error_abort);
         object_property_set_int(OBJECT(&s->cpu[i]), "reset-cbar",
                                 NPCM7XX_GIC_CPU_IF_ADDR, &error_abort);
         object_property_set_bool(OBJECT(&s->cpu[i]), "reset-hivecs", true,
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Dorjoy Chowdhury

The value of the mp-affinity property being set in npcm7xx_realize is always the same as the default value it would have when arm_cpu_realizefn is called if the property is not set here. So there is no need to set the property value in npcm7xx_realize function.

---
  hw/arm/npcm7xx.c | 3 ---
  1 file changed, 3 deletions(-)

r~

#2 lore raw
Quoted 10 lines · Richard Henderson
Quoted 9 lines · Dorjoy Chowdhury

The value of the mp-affinity property being set in npcm7xx_realize is always the same as the default value it would have when arm_cpu_realizefn is called if the property is not set here. So there is no need to set the property value in npcm7xx_realize function.

---
  hw/arm/npcm7xx.c | 3 ---

  1 file changed, 3 deletions(-)

Implicitly in
https://lore.kernel.org/qemu-devel/[email protected]/

#3 lore raw
In reply to Dorjoy Chowdhury
Quoted 8 lines · Dorjoy Chowdhury

The value of the mp-affinity property being set in npcm7xx_realize is always the same as the default value it would have when arm_cpu_realizefn is called if the property is not set here. So there is no need to set the property value in npcm7xx_realize function.

---

Applied to target-arm.next, thanks.

-- PMM