Skip to content

Commit

Permalink
MIPS: MSA: bugfix - disable MSA correctly for new threads/processes.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ralf Baechle committed Jun 10, 2015
1 parent d9fb566 commit 9cc719a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/include/asm/switch_to.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand All @@ -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 */

0 comments on commit 9cc719a

Please sign in to comment.