Call early_memtest from the bootmem_init to run memtest if it's configured and enabled.
Unified · Split
| @@ -60,6 +60,9 @@ void __init bootmem_init(void) · 59 unmodified lines | |||
| 60 | max_pfn = PFN_DOWN(memblock_end_of_DRAM()); | 60 | max_pfn = PFN_DOWN(memblock_end_of_DRAM()); |
| 61 | max_low_pfn = min(max_pfn, MAX_LOW_PFN); | 61 | max_low_pfn = min(max_pfn, MAX_LOW_PFN); |
| 62 | 62 | ||
| 63 | early_memtest((phys_addr_t)min_low_pfn << PAGE_SHIFT, | ||
| 64 | (phys_addr_t)max_low_pfn << PAGE_SHIFT); | ||
| 65 | |||
| 63 | memblock_set_current_limit(PFN_PHYS(max_low_pfn)); | 66 | memblock_set_current_limit(PFN_PHYS(max_low_pfn)); |
| 64 | dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); | 67 | dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); |
| 65 | 68 | ||