diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-05-23 01:20:19 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-06-10 11:24:53 +0200 |
commit | 9cc719ab3f4f639d629ac8ff09e9b998bc006f68 (patch) | |
tree | de4114198eb5dc0c3a55275931aceaf99a448e69 /arch/mips/include/asm/switch_to.h | |
parent | d9fb5660459819513d510e72caa3120a7cf41ee1 (diff) | |
download | talos-obmc-linux-9cc719ab3f4f639d629ac8ff09e9b998bc006f68.tar.gz talos-obmc-linux-9cc719ab3f4f639d629ac8ff09e9b998bc006f68.zip |
MIPS: MSA: bugfix - disable MSA correctly for new threads/processes.
Due to the slightly odd way that new threads and processes start execution
when scheduled for the very first time they were bypassing the required
disable_msa call.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/switch_to.h')
-rw-r--r-- | arch/mips/include/asm/switch_to.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/switch_to.h b/arch/mips/include/asm/switch_to.h index e92d6c4b5ed1..7163cd7fdd69 100644 --- a/arch/mips/include/asm/switch_to.h +++ b/arch/mips/include/asm/switch_to.h @@ -104,7 +104,6 @@ do { \ if (test_and_clear_tsk_thread_flag(prev, TIF_USEDMSA)) \ __fpsave = FP_SAVE_VECTOR; \ (last) = resume(prev, next, task_thread_info(next), __fpsave); \ - disable_msa(); \ } while (0) #define finish_arch_switch(prev) \ @@ -122,6 +121,7 @@ do { \ if (cpu_has_userlocal) \ write_c0_userlocal(current_thread_info()->tp_value); \ __restore_watch(); \ + disable_msa(); \ } while (0) #endif /* _ASM_SWITCH_TO_H */ |