1
linux/arch/um
Eric Dumazet 504f52b543 mm: NUMA aware alloc_task_struct_node()
All kthreads being created from a single helper task, they all use memory
from a single node for their kernel stack and task struct.

This patch suite creates kthread_create_on_cpu(), adding a 'cpu' parameter
to parameters already used by kthread_create().

This parameter serves in allocating memory for the new kthread on its
memory node if available.

Users of this new function are : ksoftirqd, kworker, migration, pktgend...

This patch:

Add a node parameter to alloc_task_struct(), and change its name to
alloc_task_struct_node()

This change is needed to allow NUMA aware kthread_create_on_cpu()

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Tejun Heo <tj@kernel.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: David Howells <dhowells@redhat.com>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-03-22 17:44:01 -07:00
..
drivers Merge branch 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2011-03-15 18:28:30 -07:00
include mm: NUMA aware alloc_task_struct_node() 2011-03-22 17:44:01 -07:00
kernel um: Use proper accessors in show_interrupts() 2011-02-14 19:37:40 +01:00
os-Linux um: fix global timer issue when using CONFIG_NO_HZ 2010-10-26 16:52:03 -07:00
scripts
sys-i386 ptrace: change signature of arch_ptrace() 2010-10-27 18:03:10 -07:00
sys-ia64
sys-ppc um: change to new flag variables 2011-03-17 14:02:57 +01:00
sys-x86_64 ptrace: cleanup arch_ptrace() on um 2010-10-27 18:03:12 -07:00
.gitignore
defconfig kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
Kconfig.char
Kconfig.common um: Select GENERIC_HARDIRQS_NO_DEPRECATED 2011-02-14 19:37:40 +01:00
Kconfig.debug
Kconfig.net
Kconfig.rest
Kconfig.um genirq: Remove __do_IRQ 2011-01-21 11:55:31 +01:00
Kconfig.x86 x86: Remove dead config option X86_CPU 2011-03-09 10:39:36 +01:00
Makefile
Makefile-i386
Makefile-ia64
Makefile-os-Linux
Makefile-ppc
Makefile-skas
Makefile-x86_64