tile: switch to generic clone()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 27 Oct 2012 03:36:42 +0000 (23:36 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 29 Nov 2012 03:46:37 +0000 (22:46 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/tile/include/asm/unistd.h
arch/tile/kernel/process.c

index dab827dc8acb01e6af2e985549315e8a50d3774e..b51c6ee3cd6c2f701c88cd8d45647cc038bd822f 100644 (file)
@@ -17,4 +17,5 @@
 #endif
 #define __ARCH_WANT_SYS_NEWFSTATAT
 #define __ARCH_WANT_SYS_EXECVE
+#define __ARCH_WANT_SYS_CLONE
 #include <uapi/asm/unistd.h>
index 1c20029d2f5a896664d0e5618e80aa7375f0ee64..267936b51b597d31ed50330131687b0e6f6af081 100644 (file)
@@ -584,14 +584,6 @@ int do_work_pending(struct pt_regs *regs, u32 thread_info_flags)
        panic("work_pending: bad flags %#x\n", thread_info_flags);
 }
 
-/* Note there is an implicit fifth argument if (clone_flags & CLONE_SETTLS). */
-SYSCALL_DEFINE4(clone, unsigned long, clone_flags, unsigned long, newsp,
-               void __user *, parent_tidptr, void __user *, child_tidptr)
-{
-       return do_fork(clone_flags, newsp, current_pt_regs(), 0,
-                      parent_tidptr, child_tidptr);
-}
-
 unsigned long get_wchan(struct task_struct *p)
 {
        struct KBacktraceIterator kbt;