Message ID | c3a171e31fab6eaaadd67b8e672c5d33aa9ee20c.1631510421.git.yangbonis@icloud.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Create kernel thread possibly with USEDFPU flag in mips | expand |
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index 95aa86fa6077..0095006d48c7 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c @@ -135,6 +135,9 @@ int copy_thread(unsigned long clone_flags, unsigned long usp, status |= ST0_EXL; #endif childregs->cp0_status = status; + + if (p->flags & PF_IO_WORKER) + clear_tsk_thread_flag(p, TIF_USEDFPU); return 0; }