Revert "powerpc/mm: Fix boot warning with hugepages and CONFIG_DEBUG_VIRTUAL"

This reverts commit e97c59c35e.
This commit is contained in:
Ksawlii 2024-11-24 00:23:35 +01:00
parent 495ede5554
commit e8049e38f9
2 changed files with 2 additions and 1 deletions

View file

@ -908,7 +908,6 @@ void __init setup_arch(char **cmdline_p)
mem_topology_setup(); mem_topology_setup();
/* Set max_mapnr before paging_init() */ /* Set max_mapnr before paging_init() */
set_max_mapnr(max_pfn); set_max_mapnr(max_pfn);
high_memory = (void *)__va(max_low_pfn * PAGE_SIZE);
/* /*
* Release secondary cpus out of their spinloops at 0x60 now that * Release secondary cpus out of their spinloops at 0x60 now that

View file

@ -292,6 +292,8 @@ void __init mem_init(void)
swiotlb_init(0); swiotlb_init(0);
#endif #endif
high_memory = (void *) __va(max_low_pfn * PAGE_SIZE);
kasan_late_init(); kasan_late_init();
memblock_free_all(); memblock_free_all();