mm: kill find_min_pfn_with_active_regions()
authorKefeng Wang <wangkefeng.wang@huawei.com>
Mon, 15 Aug 2022 11:10:17 +0000 (19:10 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 03:25:56 +0000 (20:25 -0700)
commitfb70c4878d6b3001ef40fa39432a38d8cabdcbf7
treedd24144a1529bbae05f5382b61703984b362ca16
parent0192445cb2f7ed1cd7a95a0fc8c7645480baba25
mm: kill find_min_pfn_with_active_regions()

find_min_pfn_with_active_regions() is only called from free_area_init().
Open-code the PHYS_PFN(memblock_start_of_DRAM()) into free_area_init(),
and kill find_min_pfn_with_active_regions().

Link: https://lkml.kernel.org/r/20220815111017.39341-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h
mm/page_alloc.c