提交 88abf44d 编写于 作者: T Tomi Valkeinen 提交者: Paul Mundt

OMAP: VRAM: Fix boot-time memory allocation

Use memblock_free() and memblock_remove() to remove the allocated or
reserved VRAM area from normal kernel memory.

This is a slightly modified version of patches from Felipe Contreras and
Namhyung Kim.
Reported-by: NFelipe Contreras <felipe.contreras@gmail.com>
Reported-by: NNamhyung Kim <namhyung@gmail.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@nokia.com>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 108409a8
...@@ -576,9 +576,12 @@ void __init omap_vram_reserve_sdram_memblock(void) ...@@ -576,9 +576,12 @@ void __init omap_vram_reserve_sdram_memblock(void)
return; return;
} }
} else { } else {
paddr = memblock_alloc_base(size, PAGE_SIZE, MEMBLOCK_REAL_LIMIT); paddr = memblock_alloc(size, PAGE_SIZE);
} }
memblock_free(paddr, size);
memblock_remove(paddr, size);
omap_vram_add_region(paddr, size); omap_vram_add_region(paddr, size);
pr_info("Reserving %u bytes SDRAM for VRAM\n", size); pr_info("Reserving %u bytes SDRAM for VRAM\n", size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册