diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-30 00:23:05 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-14 19:33:53 -0400 |
commit | c4aee363af2a81f9726c5fa13e136ebaf02852bd (patch) | |
tree | 665b4ca5312d58e85c10a2c8ef69a98e41700e04 /arch/ia64 | |
parent | a8b8f6625075c673e21ef9bb418a31b0858472b0 (diff) |
ia64: dead code in copy_thread() since 2004
It used to be called with NULL regs when creating idle threads on
secondaries. Not used that way since wli had buried that kludge...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/kernel/process.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c index 35e106f2ed13..63a77b8b5cfa 100644 --- a/arch/ia64/kernel/process.c +++ b/arch/ia64/kernel/process.c | |||
@@ -401,15 +401,6 @@ copy_thread(unsigned long clone_flags, | |||
401 | struct pt_regs *child_ptregs; | 401 | struct pt_regs *child_ptregs; |
402 | int retval = 0; | 402 | int retval = 0; |
403 | 403 | ||
404 | #ifdef CONFIG_SMP | ||
405 | /* | ||
406 | * For SMP idle threads, fork_by_hand() calls do_fork with | ||
407 | * NULL regs. | ||
408 | */ | ||
409 | if (!regs) | ||
410 | return 0; | ||
411 | #endif | ||
412 | |||
413 | stack = ((struct switch_stack *) regs) - 1; | 404 | stack = ((struct switch_stack *) regs) - 1; |
414 | 405 | ||
415 | child_ptregs = (struct pt_regs *) ((unsigned long) p + IA64_STK_OFFSET) - 1; | 406 | child_ptregs = (struct pt_regs *) ((unsigned long) p + IA64_STK_OFFSET) - 1; |