aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/process_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/process_32.c')
-rw-r--r--arch/x86/kernel/process_32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c
index d58a340e1be3..86122fa2a1ba 100644
--- a/arch/x86/kernel/process_32.c
+++ b/arch/x86/kernel/process_32.c
@@ -539,7 +539,7 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
539 * used %fs or %gs (it does not today), or if the kernel is 539 * used %fs or %gs (it does not today), or if the kernel is
540 * running inside of a hypervisor layer. 540 * running inside of a hypervisor layer.
541 */ 541 */
542 savesegment(gs, prev->gs); 542 lazy_save_gs(prev->gs);
543 543
544 /* 544 /*
545 * Load the per-thread Thread-Local Storage descriptor. 545 * Load the per-thread Thread-Local Storage descriptor.
@@ -585,7 +585,7 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
585 * Restore %gs if needed (which is common) 585 * Restore %gs if needed (which is common)
586 */ 586 */
587 if (prev->gs | next->gs) 587 if (prev->gs | next->gs)
588 loadsegment(gs, next->gs); 588 lazy_load_gs(next->gs);
589 589
590 percpu_write(current_task, next_p); 590 percpu_write(current_task, next_p);
591 591