diff options
Diffstat (limited to 'arch/sh/kernel/process_64.c')
-rw-r--r-- | arch/sh/kernel/process_64.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/sh/kernel/process_64.c b/arch/sh/kernel/process_64.c index 3826773496d8..24de74214940 100644 --- a/arch/sh/kernel/process_64.c +++ b/arch/sh/kernel/process_64.c | |||
@@ -323,7 +323,6 @@ ATTRIB_NORET void kernel_thread_helper(void *arg, int (*fn)(void *)) | |||
323 | int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) | 323 | int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) |
324 | { | 324 | { |
325 | struct pt_regs regs; | 325 | struct pt_regs regs; |
326 | int pid; | ||
327 | 326 | ||
328 | memset(®s, 0, sizeof(regs)); | 327 | memset(®s, 0, sizeof(regs)); |
329 | regs.regs[2] = (unsigned long)arg; | 328 | regs.regs[2] = (unsigned long)arg; |
@@ -333,12 +332,8 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) | |||
333 | regs.sr = (1 << 30); | 332 | regs.sr = (1 << 30); |
334 | 333 | ||
335 | /* Ok, create the new process.. */ | 334 | /* Ok, create the new process.. */ |
336 | pid = do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, | 335 | return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, |
337 | ®s, 0, NULL, NULL); | 336 | ®s, 0, NULL, NULL); |
338 | |||
339 | trace_mark(kernel_arch_kthread_create, "pid %d fn %p", pid, fn); | ||
340 | |||
341 | return pid; | ||
342 | } | 337 | } |
343 | 338 | ||
344 | /* | 339 | /* |