s390/mm: remove set_fs / rework address space handling
[linux-2.6-microblaze.git] / arch / s390 / kernel / process.c
index ec801d3..bc3ca54 100644 (file)
@@ -94,7 +94,6 @@ int copy_thread(unsigned long clone_flags, unsigned long new_stackp,
        /* Save access registers to new thread structure. */
        save_access_regs(&p->thread.acrs[0]);
        /* start new process with ar4 pointing to the correct address space */
-       p->thread.mm_segment = get_fs();
        /* Don't copy debug registers */
        memset(&p->thread.per_user, 0, sizeof(p->thread.per_user));
        memset(&p->thread.per_event, 0, sizeof(p->thread.per_event));
@@ -208,16 +207,3 @@ unsigned long arch_randomize_brk(struct mm_struct *mm)
        ret = PAGE_ALIGN(mm->brk + brk_rnd());
        return (ret > mm->brk) ? ret : mm->brk;
 }
-
-void set_fs_fixup(void)
-{
-       struct pt_regs *regs = current_pt_regs();
-       static bool warned;
-
-       set_fs(USER_DS);
-       if (warned)
-               return;
-       WARN(1, "Unbalanced set_fs - int code: 0x%x\n", regs->int_code);
-       show_registers(regs);
-       warned = true;
-}