]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - arch/powerpc/mm/numa.c
arch/powerpc/mm/numa.c: do not allocate bootmem memory for non existing nodes
[mirror_ubuntu-zesty-kernel.git] / arch / powerpc / mm / numa.c
index 8b9502adaf794f021c77a666e79d6df8f2d8d0a9..8d8a541211d0dc2164d9f48437a4e21fd3fe13e7 100644 (file)
@@ -80,7 +80,7 @@ static void __init setup_node_to_cpumask_map(void)
                setup_nr_node_ids();
 
        /* allocate the map */
-       for (node = 0; node < nr_node_ids; node++)
+       for_each_node(node)
                alloc_bootmem_cpumask_var(&node_to_cpumask_map[node]);
 
        /* cpumask_of_node() will now work */