]> 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>
Tue, 30 Oct 2012 01:37:46 +0000 (21:37 -0400)
commit53a24c1499876e2570c0db7d1a294ea9cb3c059e
treeab2094aed7dd823931af2515d32e2c54077fa356
parent5623e54f9a5790ab2490f9aedead2181e037ea2f
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