MIPS: disable preemption whilst initialising MSA
authorPaul Burton <paul.burton@imgtec.com>
Fri, 11 Jul 2014 15:44:35 +0000 (16:44 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Aug 2014 22:06:44 +0000 (00:06 +0200)
commit762a1f4388a22690cd4f848ba858e5f02d4bfc22
tree899750a406e47a67945d1525be4bd2e7a6f6a5aa
parent3587ea888b8ed0a3d7e792738b4db687d9e7f73b
MIPS: disable preemption whilst initialising MSA

Preemption must be disabled throughout the process of enabling the FPU,
enabling MSA & initialising the vector registers. Without doing so it
is possible to lose the FPU or MSA whilst initialising them causing
that initialisation to fail.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7307/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/fpu.h
arch/mips/kernel/traps.c