Skip to content

Commit

Permalink
MIPS: smp-cps: cpu_set FPU mask if FPU present
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Niklas Cassel authored and Ralf Baechle committed Apr 10, 2015
1 parent f848398 commit 90db024
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/mips/kernel/smp-cps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 90db024

Please sign in to comment.