linux/arch/um/include/asm
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
..
a.out-core.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
apic.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
arch_hweight.h um, hweight: Fix UML boot crash due to x86 optimized hweight 2010-06-10 15:24:30 -07:00
asm-offsets.h kbuild: move asm-offsets.h to include/generated 2009-12-12 13:08:14 +01:00
auxvec.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
bugs.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
cache.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
checksum.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
common.lds.S percpu: align percpu readmostly subsection to cacheline 2011-01-25 14:26:50 +01:00
cputime.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
current.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
delay.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
desc.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
device.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
dma.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
emergency-restart.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
fixmap.h x86, um: get rid of uml highmem.h 2008-10-22 22:55:21 -07:00
ftrace.h tracing: make CALLER_ADDRx overwriteable 2009-03-02 16:49:37 -05:00
futex.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
hardirq.h um: convert to asm-generic/hardirq.h 2009-09-22 07:17:45 -07:00
hw_irq.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
io.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
irq_regs.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
irq_vectors.h uml: remove useless comments 2009-04-01 08:59:17 -07:00
irq.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
irqflags.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
kdebug.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
kmap_types.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
mmu_context.h cpumask: use mm_cpumask() wrapper: um 2009-09-24 09:34:51 +09:30
mmu.h uml: remove useless comments 2009-04-01 08:59:17 -07:00
mutex.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
page_offset.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
page.h asm-generic: rename page.h and uaccess.h 2009-06-11 21:02:17 +02:00
param.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
pci.h PCI: remove pcibios_scan_all_fns() 2009-09-09 13:29:18 -07:00
pda.h uml: remove useless comments 2009-04-01 08:59:17 -07:00
pgalloc.h mm: Pass virtual address to [__]p{te,ud,md}_free_tlb() 2009-07-27 12:10:38 -07:00
pgtable-2level.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
pgtable-3level.h um, x86: Cast to (u64 *) inside set_64bit() 2010-08-03 07:00:16 -07:00
pgtable.h mm: remove pte_*map_nested() 2010-10-26 16:52:08 -07:00
processor-generic.h mm: NUMA aware alloc_task_struct_node() 2011-03-22 17:44:01 -07:00
ptrace-generic.h um: fix ptrace build error 2010-11-12 07:55:30 -08:00
required-features.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
sections.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
segment.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
setup.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
smp.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
system.h um: fix IRQ flag handling naming 2010-10-26 16:52:05 -07:00
thread_info.h add descriptive comment for TIF_MEMDIE task flag declaration. 2010-05-14 11:13:27 +02:00
timex.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
tlb.h mm: Pass virtual address to [__]p{te,ud,md}_free_tlb() 2009-07-27 12:10:38 -07:00
tlbflush.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
topology.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
uaccess.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00
xor.h x86, um: initial part of asm-um move 2008-10-22 22:55:19 -07:00