summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorMike Rapoport <rppt@linux.ibm.com>2019-02-12 11:32:36 +0200
committerDavid S. Miller <davem@davemloft.net>2019-05-09 14:26:17 -0700
commitf4d9a23d3dad0252f375901bf4ff6523a2c97241 (patch)
tree432421c225e82793c7318b9773b73495893be1d6 /Documentation
parentbc0025b6107c011e8f9411a275d8442a56bd573a (diff)
downloadlinux-f4d9a23d3dad0252f375901bf4ff6523a2c97241.tar.bz2
sparc64: simplify reduce_memory() function
The reduce_memory() function clampls the available memory to a limit defined by the "mem=" command line parameter. It takes into account the amount of already reserved memory and excludes it from the limit calculations. Rather than traverse memblocks and remove them by hand, use memblock_reserved_size() to account the reserved memory and memblock_enforce_memory_limit() to clamp the available memory. Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions