diff options
Diffstat (limited to 'arch/x86/kernel/process_64.c')
-rw-r--r-- | arch/x86/kernel/process_64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index ebefb5407b9d..c9b8904736db 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c | |||
@@ -419,6 +419,9 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p) | |||
419 | 419 | ||
420 | load_TLS(next, cpu); | 420 | load_TLS(next, cpu); |
421 | 421 | ||
422 | /* Must be after DS reload */ | ||
423 | unlazy_fpu(prev_p); | ||
424 | |||
422 | /* | 425 | /* |
423 | * Leave lazy mode, flushing any hypercalls made here. | 426 | * Leave lazy mode, flushing any hypercalls made here. |
424 | * This must be done before restoring TLS segments so | 427 | * This must be done before restoring TLS segments so |
@@ -459,9 +462,6 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p) | |||
459 | wrmsrl(MSR_KERNEL_GS_BASE, next->gs); | 462 | wrmsrl(MSR_KERNEL_GS_BASE, next->gs); |
460 | prev->gsindex = gsindex; | 463 | prev->gsindex = gsindex; |
461 | 464 | ||
462 | /* Must be after DS reload */ | ||
463 | unlazy_fpu(prev_p); | ||
464 | |||
465 | /* | 465 | /* |
466 | * Switch the PDA and FPU contexts. | 466 | * Switch the PDA and FPU contexts. |
467 | */ | 467 | */ |