diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2020-08-19 18:05:02 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-01-03 20:10:55 -0500 |
commit | af7652500b4c43643a8531b82974e97b1248a03a (patch) | |
tree | b4a0363d42b4851bf59f8724aa92a99ac237d8c8 /arch/sparc/kernel/process_32.c | |
parent | d17b9ec777d86c590a77a404565be5d6005f2fe2 (diff) | |
download | linux-af7652500b4c43643a8531b82974e97b1248a03a.tar.gz linux-af7652500b4c43643a8531b82974e97b1248a03a.tar.bz2 linux-af7652500b4c43643a8531b82974e97b1248a03a.zip |
sparc32: get rid of fake_swapper_regs
no reason to have ->kregs of initial thread set up in a special
way - we can keep them on stack, same as for every other thread.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc/kernel/process_32.c')
-rw-r--r-- | arch/sparc/kernel/process_32.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/sparc/kernel/process_32.c b/arch/sparc/kernel/process_32.c index a02363735915..97549e01f540 100644 --- a/arch/sparc/kernel/process_32.c +++ b/arch/sparc/kernel/process_32.c @@ -218,14 +218,7 @@ void flush_thread(void) } /* This task is no longer a kernel thread. */ - if (current->thread.flags & SPARC_FLAG_KTHREAD) { - current->thread.flags &= ~SPARC_FLAG_KTHREAD; - - /* We must fixup kregs as well. */ - /* XXX This was not fixed for ti for a while, worked. Unused? */ - current->thread.kregs = (struct pt_regs *) - (task_stack_page(current) + (THREAD_SIZE - TRACEREG_SZ)); - } + current->thread.flags &= ~SPARC_FLAG_KTHREAD; } static inline struct sparc_stackf __user * |