提交 ec601a34 编写于 作者: J Jiang Liu 提交者: Linus Torvalds

mm/microblaze: use free_highmem_page() to free highmem pages into buddy system

Use helper function free_highmem_page() to free highmem pages into
the buddy system.
Signed-off-by: NJiang Liu <jiang.liu@huawei.com>
Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 a564496e
...@@ -82,13 +82,9 @@ static unsigned long highmem_setup(void) ...@@ -82,13 +82,9 @@ static unsigned long highmem_setup(void)
/* FIXME not sure about */ /* FIXME not sure about */
if (memblock_is_reserved(pfn << PAGE_SHIFT)) if (memblock_is_reserved(pfn << PAGE_SHIFT))
continue; continue;
ClearPageReserved(page); free_highmem_page(page);
init_page_count(page);
__free_page(page);
totalhigh_pages++;
reservedpages++; reservedpages++;
} }
totalram_pages += totalhigh_pages;
pr_info("High memory: %luk\n", pr_info("High memory: %luk\n",
totalhigh_pages << (PAGE_SHIFT-10)); totalhigh_pages << (PAGE_SHIFT-10));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册