Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1221034 > unrolled thread

[PATCH 2/2] powerpc:numa Do not allocate bootmem memory for non existing nodes

Started byRaghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
First post2015-09-08 20:40 +0200
Last post2015-09-08 20:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH  2/2] powerpc:numa Do not allocate bootmem memory for non existing nodes Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com> - 2015-09-08 20:40 +0200

#1221034 — [PATCH 2/2] powerpc:numa Do not allocate bootmem memory for non existing nodes

FromRaghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
Date2015-09-08 20:40 +0200
Subject[PATCH 2/2] powerpc:numa Do not allocate bootmem memory for non existing nodes
Message-ID<q6vYf-40J-51@gated-at.bofh.it>
Signed-off-by: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
---
 arch/powerpc/mm/numa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index 8b9502a..8d8a541 100644
--- a/arch/powerpc/mm/numa.c
+++ b/arch/powerpc/mm/numa.c
@@ -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 */
-- 
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web