Skip to contentSkip to conversation

+ arch-x86-mm-numac-use-for_each_memblock.patch added to -mm tree

PATCH [email protected] 1 participant 1 message May 6, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Subject: + arch-x86-mm-numac-use-for_each_memblock.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 06 May 2014 14:18:56 -0700

The patch titled
Subject: arch/x86/mm/numa.c: use for_each_memblock()
has been added to the -mm tree. Its filename is
arch-x86-mm-numac-use-for_each_memblock.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/arch-x86-mm-numac-use-for_each_memblock.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/arch-x86-mm-numac-use-for_each_memblock.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Emil Medve <[email protected]>
Subject: arch/x86/mm/numa.c: use for_each_memblock()

Cc Ingo Molnar <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Yinghai Lu <[email protected]>

---

 arch/x86/mm/numa.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/x86/mm/numa.c renamed from arch/x86/mm/numa.c~arch-x86-mm-numac-use-for_each_memblock +3 -3
diff -puN arch/x86/mm/numa.c~arch-x86-mm-numac-use-for_each_memblock arch/x86/mm/numa.c
@@ -559,7 +559,7 @@ static void __init numa_clear_kernel_nod
 	int i, nid;
 	nodemask_t numa_kernel_nodes = NODE_MASK_NONE;
 	unsigned long start, end;
-	struct memblock_type *type = &memblock.reserved;
+	struct memblock_region *r;
 
 	/*
 	 * At this time, all memory regions reserved by memblock are
@@ -573,8 +573,8 @@ static void __init numa_clear_kernel_nod
 	}
 
 	/* Mark all kernel nodes. */
-	for (i = 0; i < type->cnt; i++)
-		node_set(type->regions[i].nid, numa_kernel_nodes);
+	for_each_memblock(reserved, r)
+		node_set(r->nid, numa_kernel_nodes);
 
 	/* Clear MEMBLOCK_HOTPLUG flag for memory in kernel nodes. */
 	for (i = 0; i < numa_meminfo.nr_blks; i++) {

_

Patches currently in -mm which might be from [email protected] are

arch-x86-mm-numac-use-for_each_memblock.patch