Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: Allow arm_memblock_steal() to remove memory from any RAM region

Allow arm_memblock_steal() to remove memory from any RAM region,
including highmem areas. This allows memory to be stolen from the
very top of declared memory, including highmem areas, rather than
our precious lowmem.

Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

+1 -1
+1 -1
arch/arm/mm/init.c
··· 324 324 325 325 BUG_ON(!arm_memblock_steal_permitted); 326 326 327 - phys = memblock_alloc(size, align); 327 + phys = memblock_alloc_base(size, align, MEMBLOCK_ALLOC_ANYWHERE); 328 328 memblock_free(phys, size); 329 329 memblock_remove(phys, size); 330 330