Messages in this thread Patch in this message | | | Subject | [PATCH 2/2] MIPS: MSA: bugfix of keeping MSA live context through clone or fork | From | Leonid Yegoshin <> | Date | Tue, 19 May 2015 14:13:59 -0700 |
| |
It seems the patch 39148e94e3e1f0477ce8ed3fda00123722681f3a
"MIPS: fork: Fix MSA/FPU/DSP context duplication race"
assumes that DSP/FPU and MSA context should be inherited in child at clone/fork (look into patch description). It was done on Matthew Fortune request from toolchain team, I guess.
Well, in this case it should prevent clearing TIF_MSA_CTX_LIVE in copy_thread().
Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> --- arch/mips/kernel/process.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index f2975d4d1e44..a16e62d40210 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c @@ -163,7 +163,6 @@ int copy_thread(unsigned long clone_flags, unsigned long usp, clear_tsk_thread_flag(p, TIF_USEDFPU); clear_tsk_thread_flag(p, TIF_USEDMSA); - clear_tsk_thread_flag(p, TIF_MSA_CTX_LIVE); #ifdef CONFIG_MIPS_MT_FPAFF clear_tsk_thread_flag(p, TIF_FPUBOUND);
| |