]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/mips/kernel/traps.c
MIPS: fix MSA context for tasks which don't use FP first
authorPaul Burton <paul.burton@imgtec.com>
Thu, 31 Jul 2014 13:53:16 +0000 (14:53 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Aug 2014 22:06:44 +0000 (00:06 +0200)
commit732c0c3c70869af53654db2b56dffdd8d4df5211
treee27283e34e5a2fb6d7e3ab88412eb8573b7c0c43
parentc9017757c532d48bf43d6e7d3b7282443ad4207b
MIPS: fix MSA context for tasks which don't use FP first

If a task does not execute scalar FP instructions prior to using MSA
then the flags indicating that the task has live MSA context were not
being set. The upper 64b of each vector register would then be lost
upon the tasks first context switch after using MSA.

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