@@ -114,20 +114,8 @@ static void __init arch_reserve_crashkernel(void)
low_size, high);
}
-/*
- * Return the maximum physical address for a zone given its limit.
- * If DRAM starts above 32-bit, expand the zone to the maximum
- * available memory, otherwise cap it at 32-bit.
- */
static phys_addr_t __init max_zone_phys(phys_addr_t zone_limit)
{
- phys_addr_t phys_start = memblock_start_of_DRAM();
-
- if (phys_start > U32_MAX)
- zone_limit = PHYS_ADDR_MAX;
- else if (phys_start > zone_limit)
- zone_limit = U32_MAX;
-
return min(zone_limit, memblock_end_of_DRAM() - 1) + 1;
}