mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mm/memblock.c: expose total reserved memory
The total reserved memory in a system is accounted but not available for use use outside mm/memblock.c. By exposing the total reserved memory, systems can better calculate the size of large hashes. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Srikar Dronamraju <[email protected]> Suggested-by: Mel Gorman <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Mahesh Salgaonkar <[email protected]> Cc: Hari Bathini <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Balbir Singh <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f6f34b4387
commit
8907de5dc6
2 changed files with 6 additions and 0 deletions
|
|
@ -1438,6 +1438,11 @@ phys_addr_t __init_memblock memblock_phys_mem_size(void)
|
|||
return memblock.memory.total_size;
|
||||
}
|
||||
|
||||
phys_addr_t __init_memblock memblock_reserved_size(void)
|
||||
{
|
||||
return memblock.reserved.total_size;
|
||||
}
|
||||
|
||||
phys_addr_t __init memblock_mem_size(unsigned long limit_pfn)
|
||||
{
|
||||
unsigned long pages = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue