From: akpm@linux-foundation.org Subject: + arch-x86-mm-numac-use-for_each_memblock.patch added to -mm tree Date: Tue, 06 May 2014 14:18:56 -0700 Message-ID: <536951c0.cQKN4ULOlFVRQk0r%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:41320 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751255AbaEFVS5 (ORCPT ); Tue, 6 May 2014 17:18:57 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, yinghai@kernel.org, tglx@linutronix.de, mingo@elte.hu, hpa@zytor.com, Emilian.Medve@Freescale.com Subject: + arch-x86-mm-numac-use-for_each_memblock.patch added to -mm tree To: Emilian.Medve@Freescale.com,hpa@zytor.com,mingo@elte.hu,tglx@linutronix.de,yinghai@kernel.org From: akpm@linux-foundation.org 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 Subject: arch/x86/mm/numa.c: use for_each_memblock() Signed-off-by: Emil Medve Cc: Ingo Molnar Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: Yinghai Lu Signed-off-by: Andrew Morton --- arch/x86/mm/numa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -puN arch/x86/mm/numa.c~arch-x86-mm-numac-use-for_each_memblock arch/x86/mm/numa.c --- a/arch/x86/mm/numa.c~arch-x86-mm-numac-use-for_each_memblock +++ a/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 Emilian.Medve@Freescale.com are arch-x86-mm-numac-use-for_each_memblock.patch