Skip to contentSkip to conversation

MIPS: smp-cmp: Fix vpe_id build error

PATCH New James Hogan 1 participant 1 message Nov 1, 2017 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: smp-cmp: Fix vpe_id build error

From: James Hogan <[email protected]>

The smp-cmp build has been (further) broken since commit 856fbcee6099 ("MIPS: Store core & VP IDs in GlobalNumber-style variable") in v4.14-rc1 like so:

arch/mips/kernel/smp-cmp.c: In function ‘cmp_init_secondary’:
arch/mips/kernel/smp-cmp.c:53:4: error: ‘struct cpuinfo_mips’ has no member named ‘vpe_id’
c->vpe_id = (read_c0_tcbind() >> TCBIND_CURVPE_SHIFT) &

    ^

Fix by replacing vpe_id with cpu_set_vpe_id().

Fixes 856fbcee6099 ("MIPS: Store core & VP IDs in GlobalNumber-style variable")
Cc Ralf Baechle <[email protected]>
---
 arch/mips/kernel/smp-cmp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/kernel/smp-cmp.c +2 -2
index 415e4d19f897..a2322009cac3 100644
@@ -50,8 +50,8 @@ static void cmp_init_secondary(void)
 
 #ifdef CONFIG_MIPS_MT_SMP
 	if (cpu_has_mipsmt)
-		c->vpe_id = (read_c0_tcbind() >> TCBIND_CURVPE_SHIFT) &
-			TCBIND_CURVPE;
+		cpu_set_vpe_id(c, (read_c0_tcbind() >> TCBIND_CURVPE_SHIFT) &
+				  TCBIND_CURVPE);
 #endif
 }
 
Signature · 1 line
2.14.1