]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/memblock: cleanup early_node_map[] related comments
authorWanpeng Li <liwanp@linux.vnet.ibm.com>
Thu, 13 Sep 2012 01:00:59 +0000 (11:00 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 18 Sep 2012 06:04:31 +0000 (16:04 +1000)
0ee332c14518699 ("memblock: Kill early_node_map[]") removed
early_node_map[].  Clean up the comments to comply with that change.

Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Gavin Shan <shangw@linux.vnet.ibm.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/memblock.h
mm/nobootmem.c
mm/page_alloc.c

index 19dc455b4f3dd072d0e58abdfed2de6f8ae5727c..569d67d4243ed99c4b896fac81442531b9d05cbc 100644 (file)
@@ -70,8 +70,7 @@ void __next_mem_pfn_range(int *idx, int nid, unsigned long *out_start_pfn,
  * @p_end: ptr to ulong for end pfn of the range, can be %NULL
  * @p_nid: ptr to int for nid of the range, can be %NULL
  *
- * Walks over configured memory ranges.  Available after early_node_map is
- * populated.
+ * Walks over configured memory ranges.
  */
 #define for_each_mem_pfn_range(i, nid, p_start, p_end, p_nid)          \
        for (i = -1, __next_mem_pfn_range(&i, nid, p_start, p_end, p_nid); \
index 405573010f99a8b0d877dd980e284979ebd2ec69..bd82f6b314114dc937bea707a70072b299860a08 100644 (file)
@@ -162,8 +162,6 @@ unsigned long __init free_all_bootmem(void)
         * We need to use MAX_NUMNODES instead of NODE_DATA(0)->node_id
         *  because in some case like Node0 doesn't have RAM installed
         *  low ram will be on Node1
-        * Use MAX_NUMNODES will make sure all ranges in early_node_map[]
-        *  will be used instead of only Node0 related
         */
        return free_low_memory_core_early(MAX_NUMNODES);
 }
index dffa91eb0425faf143c8f7b9cbdebb413f0e5801..a0fa9a6d3debf62dfe67e731662c716f612d5a67 100644 (file)
@@ -4913,7 +4913,7 @@ void __init free_area_init_nodes(unsigned long *max_zone_pfn)
                               zone_movable_pfn[i] << PAGE_SHIFT);
        }
 
-       /* Print out the early_node_map[] */
+       /* Print out the early node map */
        printk("Early memory node ranges\n");
        for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid)
                printk("  node %3d: [mem %#010lx-%#010lx]\n", nid,