* [PATCH] hw/arm/npcm7xx: remove setting of mp-affinity
@ 2024-05-04 14:17 Dorjoy Chowdhury
2024-05-04 14:32 ` Richard Henderson
2024-05-07 9:43 ` Peter Maydell
0 siblings, 2 replies; 4+ messages in thread
From: Dorjoy Chowdhury @ 2024-05-04 14:17 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, kfting, wuhaotsh
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 <dorjoychy111@gmail.com>
---
hw/arm/npcm7xx.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/hw/arm/npcm7xx.c b/hw/arm/npcm7xx.c
index 9f2d96c733..cb7791301b 100644
--- a/hw/arm/npcm7xx.c
+++ b/hw/arm/npcm7xx.c
@@ -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,
--
2.39.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] hw/arm/npcm7xx: remove setting of mp-affinity
2024-05-04 14:17 [PATCH] hw/arm/npcm7xx: remove setting of mp-affinity Dorjoy Chowdhury
@ 2024-05-04 14:32 ` Richard Henderson
2024-05-06 7:36 ` Philippe Mathieu-Daudé
2024-05-07 9:43 ` Peter Maydell
1 sibling, 1 reply; 4+ messages in thread
From: Richard Henderson @ 2024-05-04 14:32 UTC (permalink / raw)
To: Dorjoy Chowdhury, qemu-devel; +Cc: peter.maydell, kfting, wuhaotsh
On 5/4/24 07:17, Dorjoy Chowdhury wrote:
> 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<dorjoychy111@gmail.com>
> ---
> hw/arm/npcm7xx.c | 3 ---
> 1 file changed, 3 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] hw/arm/npcm7xx: remove setting of mp-affinity
2024-05-04 14:32 ` Richard Henderson
@ 2024-05-06 7:36 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-05-06 7:36 UTC (permalink / raw)
To: Richard Henderson, Dorjoy Chowdhury, qemu-devel
Cc: peter.maydell, kfting, wuhaotsh
On 4/5/24 16:32, Richard Henderson wrote:
> On 5/4/24 07:17, Dorjoy Chowdhury wrote:
>> 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<dorjoychy111@gmail.com>
>> ---
>> hw/arm/npcm7xx.c | 3 ---
>> 1 file changed, 3 deletions(-)
Implicitly in
https://lore.kernel.org/qemu-devel/20231212162935.42910-31-philmd@linaro.org/
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] hw/arm/npcm7xx: remove setting of mp-affinity
2024-05-04 14:17 [PATCH] hw/arm/npcm7xx: remove setting of mp-affinity Dorjoy Chowdhury
2024-05-04 14:32 ` Richard Henderson
@ 2024-05-07 9:43 ` Peter Maydell
1 sibling, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2024-05-07 9:43 UTC (permalink / raw)
To: Dorjoy Chowdhury; +Cc: qemu-devel, kfting, wuhaotsh
On Sat, 4 May 2024 at 15:17, Dorjoy Chowdhury <dorjoychy111@gmail.com> wrote:
>
> 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 <dorjoychy111@gmail.com>
> ---
Applied to target-arm.next, thanks.
-- PMM
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-05-07 9:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-04 14:17 [PATCH] hw/arm/npcm7xx: remove setting of mp-affinity Dorjoy Chowdhury
2024-05-04 14:32 ` Richard Henderson
2024-05-06 7:36 ` Philippe Mathieu-Daudé
2024-05-07 9:43 ` Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).