]> git.baikalelectronics.ru Git - kernel.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>
Thu, 29 Nov 2012 02:49:03 +0000 (21:49 -0500)
commita4f55ce6269afb87475dd5e5e5542aefa9f5d629
tree10f3e3009387881a3c4a209b9d72c453aae865a1
parent22330b2c877015240ed2266d5b33370f41054d63
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