aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-10-22 22:51:14 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-11-28 23:43:42 -0500
commitafa86fc426ff7e7f5477f15da9c405d08d5cf790 (patch)
tree0f82925269757902ce6f7c287a968f7b439d2b2d /arch/powerpc/kernel
parent135c37b83c81b79a888108e3f7c5f64423d8a851 (diff)
flagday: don't pass regs to copy_thread()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index a31437567631..81430674e71c 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -733,8 +733,7 @@ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
733extern unsigned long dscr_default; /* defined in arch/powerpc/kernel/sysfs.c */ 733extern unsigned long dscr_default; /* defined in arch/powerpc/kernel/sysfs.c */
734 734
735int copy_thread(unsigned long clone_flags, unsigned long usp, 735int copy_thread(unsigned long clone_flags, unsigned long usp,
736 unsigned long arg, struct task_struct *p, 736 unsigned long arg, struct task_struct *p)
737 struct pt_regs *regs)
738{ 737{
739 struct pt_regs *childregs, *kregs; 738 struct pt_regs *childregs, *kregs;
740 extern void ret_from_fork(void); 739 extern void ret_from_fork(void);
@@ -759,6 +758,7 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
759 ti->flags |= _TIF_RESTOREALL; 758 ti->flags |= _TIF_RESTOREALL;
760 f = ret_from_kernel_thread; 759 f = ret_from_kernel_thread;
761 } else { 760 } else {
761 struct pt_regs *regs = current_pt_regs();
762 CHECK_FULL_REGS(regs); 762 CHECK_FULL_REGS(regs);
763 *childregs = *regs; 763 *childregs = *regs;
764 if (usp) 764 if (usp)