x86/fpu: Don't set TIF_NEED_FPU_LOAD for PF_IO_WORKER threads
[platform/kernel/linux-starfive.git] / arch / x86 / include / asm / fpu / sched.h
index b2486b2..c2d6cd7 100644 (file)
@@ -39,7 +39,7 @@ extern void fpu_flush_thread(void);
 static inline void switch_fpu_prepare(struct fpu *old_fpu, int cpu)
 {
        if (cpu_feature_enabled(X86_FEATURE_FPU) &&
-           !(current->flags & PF_KTHREAD)) {
+           !(current->flags & (PF_KTHREAD | PF_IO_WORKER))) {
                save_fpregs_to_fpstate(old_fpu);
                /*
                 * The save operation preserved register state, so the