sh: mm: make use of new memblocks_present() helper
PATCH 1/1 sh: mm: make use of new memblocks_present() helper
Cleanup the open coded for_each_memblock() loop that is equivalent to the new memblocks_present() helper.
Signed-off-by Logan Gunthorpe <[email protected]>
Reviewed-by Christoph Hellwig <[email protected]>
Cc Yoshinori Sato <[email protected]>
Cc Rich Felker <[email protected]>
--- arch/sh/mm/init.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
This is just a resend
arch/sh/mm/init.c +1 -6
@@ -234,12 +234,7 @@ static void __init do_init_bootmem(void)plat_mem_setup (); -for_each_memblock (memory, reg) { -int nid =memblock_get_region_node (reg); - -memory_present (nid,memblock_region_memory_base_pfn (reg), -memblock_region_memory_end_pfn (reg)); - } +memblocks_present ();sparse_init (); }
--
2.19.0
Quoted 7 lines · Logan Gunthorpe
Cleanup the open coded
for_each_memblock()loop that is equivalent to the newmemblocks_present()helper.Signed-off-by Logan Gunthorpe <[email protected]>Reviewed-by Christoph Hellwig <[email protected]>Cc Yoshinori Sato <[email protected]>Cc Rich Felker <[email protected]>
Reviewed-by Mike Rapoport <[email protected]>
Quoted 27 lines
--- arch/sh/mm/init.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)This is just a resend
arch/sh/mm/init.c +1
-7@@ -234,12 +234,7 @@ static void __init do_init_bootmem(void)plat_mem_setup (); -for_each_memblock (memory, reg) { -int nid =memblock_get_region_node (reg); - -memory_present (nid,memblock_region_memory_base_pfn (reg), -memblock_region_memory_end_pfn (reg)); - } +memblocks_present ();sparse_init (); } --2.19.0
Signature · 2 lines
Sincerely yours, Mike.