Skip to contentSkip to conversation

MIPS: smp-cps: cpu_set FPU mask if FPU present

PATCH New Niklas Cassel 1 participant 1 message Jan 15, 2015 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: smp-cps: cpu_set FPU mask if FPU present

If we have an FPU, enroll ourselves in the FPU-full mask. Matching the MT_SMP and CMP implementations of smp_setup.

---
 arch/mips/kernel/smp-cps.c | 6 ++++++
 1 file changed, 6 insertions(+)
arch/mips/kernel/smp-cps.c +6 -0
index bed7590..d5589be 100644
@@ -88,6 +88,12 @@ static void __init cps_smp_setup(void)
 
 	/* Make core 0 coherent with everything */
 	write_gcr_cl_coherence(0xff);
+
+#ifdef CONFIG_MIPS_MT_FPAFF
+	/* If we have an FPU, enroll ourselves in the FPU-full mask */
+	if (cpu_has_fpu)
+		cpu_set(0, mt_fpu_cpumask);
+#endif /* CONFIG_MIPS_MT_FPAFF */
 }
 
 static void __init cps_prepare_cpus(unsigned int max_cpus)
Signature · 1 line
2.1.4