]> git.hungrycats.org Git - linux/commit
[PATCH] kill CLONE_IDLETASK
authorWilliam Lee Irwin III <wli@holomorphy.com>
Tue, 24 Aug 2004 04:27:20 +0000 (21:27 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 04:27:20 +0000 (21:27 -0700)
commit69c46983febf3acfa45c868fa18ae213c87b5c01
treeb6fa0a41401335d3f4e46893be906e90e2290074
parentf4205a53c8f5184e0275ed30dc9f20e1d5d69015
[PATCH] kill CLONE_IDLETASK

  The sole remaining usage of CLONE_IDLETASK is to determine whether pid
  allocation should be performed in copy_process().  This patch eliminates
  that last branch on CLONE_IDLETASK in the normal process creation path,
  removes the masking of CLONE_IDLETASK from clone_flags as it's now ignored
  under all circumstances, and furthermore eliminates the symbol
  CLONE_IDLETASK entirely.

From: William Lee Irwin III <wli@holomorphy.com>

  Fix the fork-idle consolidation.  During that consolidation, the generic
  code was made to pass a pointer to on-stack pt_regs that had been memset()
  to 0.  ia64, however, requires a NULL pt_regs pointer argument and
  dispatches on that in its copy_thread() function to do SMP
  trampoline-specific RSE -related setup.  Passing pointers to zeroed pt_regs
  resulted in SMP wakeup -time deadlocks and exceptions.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ia64/kernel/smpboot.c
kernel/fork.c