diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-21 22:27:13 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-21 22:27:13 -0400 |
commit | 64c2f6596bd84b05a781baf034fdd56ce1192d36 (patch) | |
tree | 2c3563c6cca00809d0459d9f1e16bc5d2c94bc56 /arch/powerpc/kernel/process.c | |
parent | 9d401279d682280a92db8193ede8415c34588207 (diff) |
powerpc: don't bother with CHECK_FULL_REGS in sys_fork() et.al.
copy_thread() will do it anyway.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/powerpc/kernel/process.c')
-rw-r--r-- | arch/powerpc/kernel/process.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 471c52cfc1fb..de9f032116c0 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -1030,7 +1030,6 @@ int sys_clone(unsigned long clone_flags, unsigned long usp, | |||
1030 | int __user *child_tidp, int p6, | 1030 | int __user *child_tidp, int p6, |
1031 | struct pt_regs *regs) | 1031 | struct pt_regs *regs) |
1032 | { | 1032 | { |
1033 | CHECK_FULL_REGS(regs); | ||
1034 | if (usp == 0) | 1033 | if (usp == 0) |
1035 | usp = regs->gpr[1]; /* stack pointer for child */ | 1034 | usp = regs->gpr[1]; /* stack pointer for child */ |
1036 | return do_fork(clone_flags, usp, regs, 0, parent_tidp, child_tidp); | 1035 | return do_fork(clone_flags, usp, regs, 0, parent_tidp, child_tidp); |
@@ -1040,7 +1039,6 @@ int sys_fork(unsigned long p1, unsigned long p2, unsigned long p3, | |||
1040 | unsigned long p4, unsigned long p5, unsigned long p6, | 1039 | unsigned long p4, unsigned long p5, unsigned long p6, |
1041 | struct pt_regs *regs) | 1040 | struct pt_regs *regs) |
1042 | { | 1041 | { |
1043 | CHECK_FULL_REGS(regs); | ||
1044 | return do_fork(SIGCHLD, regs->gpr[1], regs, 0, NULL, NULL); | 1042 | return do_fork(SIGCHLD, regs->gpr[1], regs, 0, NULL, NULL); |
1045 | } | 1043 | } |
1046 | 1044 | ||
@@ -1048,7 +1046,6 @@ int sys_vfork(unsigned long p1, unsigned long p2, unsigned long p3, | |||
1048 | unsigned long p4, unsigned long p5, unsigned long p6, | 1046 | unsigned long p4, unsigned long p5, unsigned long p6, |
1049 | struct pt_regs *regs) | 1047 | struct pt_regs *regs) |
1050 | { | 1048 | { |
1051 | CHECK_FULL_REGS(regs); | ||
1052 | return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, regs->gpr[1], | 1049 | return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, regs->gpr[1], |
1053 | regs, 0, NULL, NULL); | 1050 | regs, 0, NULL, NULL); |
1054 | } | 1051 | } |