hw/arm/npcm7xx: remove setting of mp-affinity
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
@@ -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
Quoted 9 lines · Dorjoy Chowdhury
The value of the mp-affinity property being set in
npcm7xx_realizeis always the same as the default value it would have whenarm_cpu_realizefnis called if the property is not set here. So there is no need to set the property value innpcm7xx_realizefunction.Signed-off-by Dorjoy Chowdhury<[email protected]>--- hw/arm/npcm7xx.c | 3 --- 1 file changed, 3 deletions(-)
r~
Philippe Mathieu-Daudé
Reviewed-byQuoted 10 lines · Richard Henderson
Quoted 9 lines · Dorjoy Chowdhury
The value of the mp-affinity property being set in
npcm7xx_realizeis always the same as the default value it would have whenarm_cpu_realizefnis called if the property is not set here. So there is no need to set the property value innpcm7xx_realizefunction.Signed-off-by Dorjoy Chowdhury<[email protected]>---
hw/arm/npcm7xx.c| 3 ---1 file changed, 3 deletions(-)
Implicitly in
https://lore.kernel.org/qemu-devel/[email protected]/
Peter Maydell
AppliedQuoted 8 lines · Dorjoy Chowdhury
The value of the mp-affinity property being set in
npcm7xx_realizeis always the same as the default value it would have whenarm_cpu_realizefnis called if the property is not set here. So there is no need to set the property value innpcm7xx_realizefunction.Signed-off-by Dorjoy Chowdhury <[email protected]>---
Applied to target-arm.next, thanks.
-- PMM