[PATCH] powerpc/32s: Fix cleanup_cpu_mmu_context() compile bug

From: Nicholas Piggin
Date: Sun Dec 13 2020 - 22:52:39 EST


32s has no tlbiel_all() defined, so just disable the cleanup with a
comment.

Fixes: 01b0f0eae081 ("powerpc/64s: Trim offlined CPUs from mm_cpumasks")
Reported-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Signed-off-by: Nicholas Piggin <npiggin@xxxxxxxxx>
---
arch/powerpc/platforms/powermac/smp.c | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/arch/powerpc/platforms/powermac/smp.c b/arch/powerpc/platforms=
/powermac/smp.c
index adae2a6712e1..66ef5f8f4445 100644
--- a/arch/powerpc/platforms/powermac/smp.c
+++ b/arch/powerpc/platforms/powermac/smp.c
@@ -911,7 +911,16 @@ static int smp_core99_cpu_disable(void)
=20
mpic_cpu_set_priority(0xf);
=20
+ /*
+ * Would be nice for consistency if all platforms clear mm_cpumask and
+ * flush TLBs on unplug, but the TLB invalidation bug described in
+ * commit 01b0f0eae081 ("powerpc/64s: Trim offlined CPUs from
+ * mm_cpumasks") only applies to 64s and for now we only have the TLB
+ * flush code for that platform.
+ */
+#ifdef CONFIG_PPC64
cleanup_cpu_mmu_context();
+#endif
=20
return 0;
}
--=20
2.23.0