Skip to content

Commit 90db024

Browse files
Niklas Casselralfbaechle
authored andcommitted
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. Signed-off-by: Niklas Cassel <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/8948/ Signed-off-by: Ralf Baechle <[email protected]>
1 parent f848398 commit 90db024

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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)