Revert "powerpc/mm: Always update max/min_low_pfn in mem_topology_setup()"

This reverts commit d3b3390017.
This commit is contained in:
Ksawlii 2024-11-24 00:22:51 +01:00
parent fa732d6508
commit 62d9425e52

View file

@ -1177,9 +1177,6 @@ void __init mem_topology_setup(void)
{
int cpu;
max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT;
min_low_pfn = MEMORY_START >> PAGE_SHIFT;
/*
* Linux/mm assumes node 0 to be online at boot. However this is not
* true on PowerPC, where node 0 is similar to any other node, it
@ -1224,6 +1221,9 @@ void __init initmem_init(void)
{
int nid;
max_low_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT;
max_pfn = max_low_pfn;
memblock_dump_all();
for_each_online_node(nid) {