x86/mm: Factor out LDT init from context init
[cascardo/linux.git] / arch / x86 / kernel / ldt.c
index 6acc9dd..6707039 100644 (file)
@@ -103,7 +103,7 @@ static void free_ldt_struct(struct ldt_struct *ldt)
  * we do not have to muck with descriptors here, that is
  * done in switch_mm() as needed.
  */
-int init_new_context(struct task_struct *tsk, struct mm_struct *mm)
+int init_new_context_ldt(struct task_struct *tsk, struct mm_struct *mm)
 {
        struct ldt_struct *new_ldt;
        struct mm_struct *old_mm;
@@ -144,7 +144,7 @@ out_unlock:
  *
  * 64bit: Don't touch the LDT register - we're already in the next thread.
  */
-void destroy_context(struct mm_struct *mm)
+void destroy_context_ldt(struct mm_struct *mm)
 {
        free_ldt_struct(mm->context.ldt);
        mm->context.ldt = NULL;