summaryrefslogtreecommitdiffstats
path: root/mm/memblock.c
diff options
context:
space:
mode:
authorTejun Heo2011-12-08 19:22:07 +0100
committerTejun Heo2011-12-08 19:22:07 +0100
commit6fbef13c4feaf0c5576e2315f4d2999c4b670c88 (patch)
tree454bc9c67bf92295595130f4d42548b6d59b5474 /mm/memblock.c
parentmemblock: Reimplement memblock_enforce_memory_limit() using __memblock_remove() (diff)
downloadkernel-qcow2-linux-6fbef13c4feaf0c5576e2315f4d2999c4b670c88.tar.gz
kernel-qcow2-linux-6fbef13c4feaf0c5576e2315f4d2999c4b670c88.tar.xz
kernel-qcow2-linux-6fbef13c4feaf0c5576e2315f4d2999c4b670c88.zip
powerpc: Cleanup memblock usage
* early_init_devtree(): Total memory size is aligned to PAGE_SIZE; however, alignment isn't enforced if memory_limit is explicitly specified. Simplify the logic and always apply PAGE_SIZE alignment. * MMU_init(): memblock regions is truncated by directly modifying memblock.memory.cnt. This is incomplete (reserved array is not truncated) and unnecessarily low level hindering further memblock improvments. Use memblock_enforce_memory_limit() instead. * wii_memory_fixups(): Unnecessarily low level direct manipulation of memblock regions. The same result can be achieved using properly abstracted operations. Reimplement using memblock API. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Yinghai Lu <yinghai@kernel.org>
Diffstat (limited to 'mm/memblock.c')
0 files changed, 0 insertions, 0 deletions