Thread (6 messages) flat view 6 messages, 3 authors, 2007-10-28

Re: [PATCH] [POWERPC] Fix CONFIG_SMP=n build break

From: Arnd Bergmann <arnd@arndb.de>
Date: 2007-10-26 18:19:52
Also in: lkml

On Friday 26 October 2007, Olof Johansson wrote:
Fix two build errors on powerpc allyesconfig + CONFIG_SMP=3Dn:

arch/powerpc/platforms/built-in.o: In function `cpu_affinity_set':
arch/powerpc/platforms/cell/spu_priv1_mmio.c:78: undefined reference to
`.iic_get_target_id' arch/powerpc/platforms/built-in.o: In function
`iic_init_IRQ':
arch/powerpc/platforms/cell/interrupt.c:397: undefined reference to
`.iic_setup_cpu'
Thanks for reporting this.
quoted hunk ↗ jump to hunk
--- a/arch/powerpc/platforms/cell/spu_priv1_mmio.c
+++ b/arch/powerpc/platforms/cell/spu_priv1_mmio.c
@@ -75,9 +75,11 @@ static u64 int_stat_get(struct spu *spu, int class)
=A0
=A0static void cpu_affinity_set(struct spu *spu, int cpu)
=A0{
+#ifdef CONFIG_SMP
=A0=A0=A0=A0=A0=A0=A0=A0u64 target =3D iic_get_target_id(cpu);
=A0=A0=A0=A0=A0=A0=A0=A0u64 route =3D target << 48 | target << 32 | targe=
t << 16;
=A0=A0=A0=A0=A0=A0=A0=A0out_be64(&spu->priv1->int_route_RW, route);
+#endif
=A0}
I think here it would be better to move iic_get_target_id out of
CONFIG_SMP as well. We might want to kexec from an SMP kernel into
a UP kernel, and in that case, cpu_affinity_set() should better
reset the routing to CPU 0.

	Arnd <><
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help