|
@@ -562,6 +562,15 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
|
|
|
|
|
|
load_TLS(next, cpu);
|
|
|
|
|
|
+ /*
|
|
|
+ * Leave lazy mode, flushing any hypercalls made here.
|
|
|
+ * This must be done before restoring TLS segments so
|
|
|
+ * the GDT and LDT are properly updated, and must be
|
|
|
+ * done before math_state_restore, so the TS bit is up
|
|
|
+ * to date.
|
|
|
+ */
|
|
|
+ arch_leave_lazy_cpu_mode();
|
|
|
+
|
|
|
/*
|
|
|
* Switch FS and GS.
|
|
|
*/
|