tmp_suning_uos_patched/arch
Mel Gorman 6484eb3e2a page allocator: do not check NUMA node ID when the caller knows the node is valid
Callers of alloc_pages_node() can optionally specify -1 as a node to mean
"allocate from the current node".  However, a number of the callers in
fast paths know for a fact their node is valid.  To avoid a comparison and
branch, this patch adds alloc_pages_exact_node() that only checks the nid
with VM_BUG_ON().  Callers that know their node is valid are then
converted.

Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: Christoph Lameter <cl@linux-foundation.org>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Paul Mundt <lethal@linux-sh.org>	[for the SLOB NUMA bits]
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Dave Hansen <dave@linux.vnet.ibm.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-06-16 19:47:32 -07:00
..
alpha mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
arm mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
avr32 mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
blackfin mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
cris mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
frv mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
h8300 mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
ia64 page allocator: do not check NUMA node ID when the caller knows the node is valid 2009-06-16 19:47:32 -07:00
m32r mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
m68k mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
m68knommu mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
microblaze Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic 2009-06-12 18:15:51 -07:00
mips mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
mn10300 mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
parisc mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
powerpc page allocator: do not check NUMA node ID when the caller knows the node is valid 2009-06-16 19:47:32 -07:00
s390 mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
sh mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
sparc mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
um mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
x86 page allocator: do not check NUMA node ID when the caller knows the node is valid 2009-06-16 19:47:32 -07:00
xtensa mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
.gitignore
Kconfig mutex: have non-spinning mutexes on s390 by default 2009-04-09 19:28:24 +02:00