Skip to content

Commit 8a77ae3

Browse files
Niklas Casselsashalevin
authored andcommitted
MIPS: smp-cps: cpu_set FPU mask if FPU present
[ Upstream commit 90db024 ] If we have an FPU, enroll ourselves in the FPU-full mask. Matching the MT_SMP and CMP implementations of smp_setup. Signed-off-by: Niklas Cassel <niklass@axis.com> Cc: paul.burton@imgtec.com Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/8948/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
1 parent 718bce3 commit 8a77ae3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎arch/mips/kernel/smp-cps.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ static void __init cps_smp_setup(void)
8888

8989
/* Make core 0 coherent with everything */
9090
write_gcr_cl_coherence(0xff);
91+
92+
#ifdef CONFIG_MIPS_MT_FPAFF
93+
/* If we have an FPU, enroll ourselves in the FPU-full mask */
94+
if (cpu_has_fpu)
95+
cpu_set(0, mt_fpu_cpumask);
96+
#endif /* CONFIG_MIPS_MT_FPAFF */
9197
}
9298

9399
static void __init cps_prepare_cpus(unsigned int max_cpus)

0 commit comments

Comments
 (0)