2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-20 03:04:01 +08:00
linux-next/drivers/misc/sgi-xp
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
..
Makefile sgi-xp: only build for ia64-sn2 when CONFIG_IA64_GENERIC specified 2008-10-30 11:38:46 -07:00
xp_main.c sgi-xp/sgi-gru: allow modules to load on non-uv systems 2009-04-21 13:41:50 -07:00
xp_nofault.S [IA64] run some drivers/misc/sgi-xp through scripts/Lindent 2008-04-22 15:08:29 -07:00
xp_sn2.c sgi-xp: define xp_expand_memprotect() and xp_restrict_memprotect() 2008-11-05 20:32:20 -08:00
xp_uv.c sgi-xp: define xp_partition_id and xp_region_size 2008-11-05 20:32:21 -08:00
xp.h SGI IA64 UV: fix ia64 build error in the linux-next tree 2009-02-11 13:31:47 +01:00
xpc_channel.c sgi-xpc: clean up numerous globals 2009-04-13 15:04:33 -07:00
xpc_main.c sgi-xpc: clean up numerous globals 2009-04-13 15:04:33 -07:00
xpc_partition.c sgi-xpc: clean up numerous globals 2009-04-13 15:04:33 -07:00
xpc_sn2.c sgi-xpc: clean up numerous globals 2009-04-13 15:04:33 -07:00
xpc_uv.c page allocator: do not check NUMA node ID when the caller knows the node is valid 2009-06-16 19:47:32 -07:00
xpc.h sgi-xpc: clean up numerous globals 2009-04-13 15:04:33 -07:00
xpnet.c net: fix network driver ndo_start_xmit() return values (part 1) 2009-06-13 01:18:32 -07:00