linux/drivers/misc/sgi-gru
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
..
gru.h SGI IA64 UV: fix ia64 build error in the linux-next tree 2009-02-11 13:31:47 +01:00
gru_instructions.h sgi-gru: misc GRU cleanup 2009-04-02 19:05:05 -07:00
grufault.c sgi-gru: support multiple pagesizes in GRU 2009-04-02 19:05:07 -07:00
grufile.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
gruhandles.c sgi-gru: support multiple pagesizes in GRU 2009-04-02 19:05:07 -07:00
gruhandles.h sgi-gru: support multiple pagesizes in GRU 2009-04-02 19:05:07 -07:00
grukservices.c sgi-gru: support multiple pagesizes in GRU 2009-04-02 19:05:07 -07:00
grukservices.h sgi-gru: add support to the GRU driver for message queue interrupts 2009-04-02 19:05:06 -07:00
grulib.h GRU Driver: driver internal header files 2008-07-30 09:41:47 -07:00
grumain.c sgi-gru: support multiple pagesizes in GRU 2009-04-02 19:05:07 -07:00
gruprocfs.c sgi-gru: macro for scanning all gru chiplets 2009-04-02 19:05:06 -07:00
grutables.h sgi-gru: support multiple pagesizes in GRU 2009-04-02 19:05:07 -07:00
grutlbpurge.c sgi-gru: improvements to GRU debug messages & statistics 2009-04-02 19:05:05 -07:00
Makefile sgi-gru: change GRU CCH commands from inline functions to outofline functions 2009-04-02 19:05:06 -07:00