diff options
-rw-r--r-- | arch/x86/kernel/fpu/core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/kernel/fpu/core.c b/arch/x86/kernel/fpu/core.c index a0b2221b686d..b1fbbb8eb934 100644 --- a/arch/x86/kernel/fpu/core.c +++ b/arch/x86/kernel/fpu/core.c @@ -170,7 +170,7 @@ void irq_ts_restore(int TS_state) EXPORT_SYMBOL_GPL(irq_ts_restore); /* - * Save the FPU state (initialize it if necessary): + * Save the FPU state (mark it for reload if necessary): * * This only ever gets called for the current task. */ @@ -180,8 +180,7 @@ void fpu__save(struct fpu *fpu) preempt_disable(); if (fpu->fpregs_active) { - copy_fpregs_to_fpstate(fpu); - if (!use_eager_fpu()) + if (!copy_fpregs_to_fpstate(fpu)) fpregs_deactivate(fpu); } preempt_enable(); |