]> git.karo-electronics.de Git - karo-tx-linux.git/commit
alpha: simplify fork and friends
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Oct 2012 05:11:58 +0000 (01:11 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 2 Nov 2012 23:05:48 +0000 (19:05 -0400)
commitdc9f42da19cb6a7cd5d588176ccc053433c2859a
tree8995f55878769649395e125d2e213b3a0f04c45f
parent6bd73e7912151440d3e16e13b3e8fe7f7e37e357
alpha: simplify fork and friends

* no need to restore everything from switch_stack when we only need $26
* no need to pass current_pt_regs() manually, we can just as easily
calculate it in alpha_clone/alpha_vfork ($8 + constant)
* interpretation of zero usp as "use the parent's" is simpler in copy_thread();
let fork and vfork just pass 0.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/alpha/kernel/entry.S
arch/alpha/kernel/process.c