ANDROID: mm/memblock: export memblock_end_of_DRAM

Export memblock_end_of_DRAM() so that module drivers can know
the physical end address of memory blocks that system booted with.

Bug: 174547201
Change-Id: Ib0c90b736f16d1abbf47d4f3288443c35f9e17b4
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
This commit is contained in:
Sudarshan Rajagopalan 2020-10-28 14:31:09 -07:00 • committed by Stanley Chu
commit 5d835560a3

View file

@ -1626,6 +1626,7 @@ phys_addr_t __init_memblock memblock_end_of_DRAM(void)
return (memblock.memory.regions[idx].base + memblock.memory.regions[idx].size);
}
EXPORT_SYMBOL_GPL(memblock_end_of_DRAM);
static phys_addr_t __init_memblock __find_max_addr(phys_addr_t limit)
{