Skip to content

Commit

Permalink
hw/arm/npcm7xx: remove setting of mp-affinity
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Dorjoy Chowdhury <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-id: [email protected]
Signed-off-by: Peter Maydell <[email protected]>
  • Loading branch information
dorjoy03 authored and pm215 committed May 28, 2024
1 parent 19ed42e commit 03935f9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hw/arm/npcm7xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 03935f9

Please sign in to comment.