summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2011-05-24 17:12:23 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-25 08:39:24 -0700
commit0091a47da0b720ca39511c7d90dcc768cafcaf58 (patch)
tree13bb44f8877ebf91d35822e97c14c406e1894874 /arch
parentad8b4b28573cea3fca0cfa06aac00fe8bf04499a (diff)
downloadop-kernel-dev-0091a47da0b720ca39511c7d90dcc768cafcaf58.zip
op-kernel-dev-0091a47da0b720ca39511c7d90dcc768cafcaf58.tar.gz
m32r, mm: set all online nodes in N_NORMAL_MEMORY
For m32r, 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 <rientjes@google.com> Cc: Hirokazu Takata <takata@linux-m32r.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/m32r/mm/discontig.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/m32r/mm/discontig.c b/arch/m32r/mm/discontig.c
index 5d2858f..2c468e8 100644
--- a/arch/m32r/mm/discontig.c
+++ b/arch/m32r/mm/discontig.c
@@ -149,6 +149,7 @@ unsigned long __init zone_sizes_init(void)
zholes_size[ZONE_DMA] = mp->holes;
holes += zholes_size[ZONE_DMA];
+ node_set_state(nid, N_NORMAL_MEMORY);
free_area_init_node(nid, zones_size, start_pfn, zholes_size);
}
OpenPOWER on IntegriCloud