From: David Rientjes Date: Wed, 25 May 2011 00:12:22 +0000 (-0700) Subject: alpha, mm: set all online nodes in N_NORMAL_MEMORY X-Git-Tag: v3.12-rc1~5967 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad8b4b28573cea3fca0cfa06aac00fe8bf04499a;p=kernel%2Fkernel-generic.git alpha, mm: set all online nodes in N_NORMAL_MEMORY For alpha, N_NORMAL_MEMORY represents all nodes that have present memory since it does not support HIGHMEM. This patch sets the bit at the time the node is initialized. If N_NORMAL_MEMORY is not accurate, slub may encounter errors since it uses this nodemask to setup per-cache kmem_cache_node data structures. Signed-off-by: David Rientjes Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/alpha/mm/numa.c b/arch/alpha/mm/numa.c index 7b2c56d..3973ae3 100644 --- a/arch/alpha/mm/numa.c +++ b/arch/alpha/mm/numa.c @@ -313,6 +313,7 @@ void __init paging_init(void) zones_size[ZONE_DMA] = dma_local_pfn; zones_size[ZONE_NORMAL] = (end_pfn - start_pfn) - dma_local_pfn; } + node_set_state(nid, N_NORMAL_MEMORY); free_area_init_node(nid, zones_size, start_pfn, NULL); }