OSDN Git Service

MIPS: ensure MSA gets disabled during boot
authorPaul Burton <paul.burton@imgtec.com>
Fri, 11 Jul 2014 15:44:34 +0000 (16:44 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Aug 2014 22:06:44 +0000 (00:06 +0200)
commit3587ea888b8ed0a3d7e792738b4db687d9e7f73b
tree7f7fe5b13ab70d1f91c228391bc866f9de0cf8b5
parent70dff4d90aab40326d1d06a331e2b07eae99d067
MIPS: ensure MSA gets disabled during boot

The kernel relies upon MSA being disabled when a task begins running,
so that it can initialise or restore context in response to the
resulting MSA disabled exception. Previously the state of MSA following
boot was left as it was before the kernel ran, where MSA could
potentially have been enabled. Explicitly disable it during boot to
prevent any problems.

As a nice side effect the code reads a little better too.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7306/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cpu-probe.c