kthread: reduce stack pressure in create_kthread and kthreadd
authorMike Travis <travis@sgi.com>
Tue, 8 Jul 2008 22:55:48 +0000 (15:55 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 18 Jul 2008 16:46:58 +0000 (18:46 +0200)
commit8df185a95c9b84fc0c3c02224e64fdc5b83bae34
treedd53306fbec26ca7da24494b2844622363dc8bb3
parent8b95d9172be7146c87e7a998310ce2919c851adc
kthread: reduce stack pressure in create_kthread and kthreadd

  * Replace:

   set_cpus_allowed(..., CPU_MASK_ALL)

    with:

   set_cpus_allowed_ptr(..., CPU_MASK_ALL_PTR)

    to remove excessive stack requirements when NR_CPUS=4096.

Signed-off-by: Mike Travis <travis@sgi.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/kthread.c