From 50a995089170f44b411fa324dad616c2460c28ea Mon Sep 17 00:00:00 2001 From: Yoshinori Sato Date: Fri, 1 Jan 2016 20:22:45 +0900 Subject: [PATCH] rx: use common clone. Signed-off-by: Yoshinori Sato --- arch/rx/include/uapi/asm/unistd.h | 1 + arch/rx/kernel/process.c | 14 -------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/arch/rx/include/uapi/asm/unistd.h b/arch/rx/include/uapi/asm/unistd.h index 7a2eb698def3..49108ac62936 100644 --- a/arch/rx/include/uapi/asm/unistd.h +++ b/arch/rx/include/uapi/asm/unistd.h @@ -1,3 +1,4 @@ #define __ARCH_NOMMU +#define __ARCH_WANT_SYS_CLONE #include diff --git a/arch/rx/kernel/process.c b/arch/rx/kernel/process.c index 393772c2cb2d..905702edc68c 100644 --- a/arch/rx/kernel/process.c +++ b/arch/rx/kernel/process.c @@ -117,20 +117,6 @@ int copy_thread(unsigned long clone_flags, return 0; } -asmlinkage int sys_clone(struct pt_regs *regs) -{ - unsigned long clone_flags = regs->r[1]; - unsigned long newsp = regs->r[2]; - unsigned long parent_tidptr = regs->r[3]; - unsigned long child_tidptr = regs->r[4]; - - if (!newsp) - newsp = regs->usp; - return do_fork(clone_flags, newsp, 0, - (int __user *)parent_tidptr, - (int __user *)child_tidptr); -} - unsigned long get_wchan(struct task_struct *p) { int count = 0; -- 2.11.0