]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Wed, 17 Aug 2022 20:58:41 +0000 (13:58 -0700)
commite0a98c22bde74634e4f13f37ce32e628445162eb
tree23f86e63e3699b3a5b4defd9b95a4d45ff1ebeb1
parent67461f7b6f70bca41703177af3c165a4d67bab84
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