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

mm/ARM: 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: Russell King <linux@arm.linux.org.uk>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 cfa11e08
...@@ -522,10 +522,8 @@ static void __init free_unused_memmap(struct meminfo *mi) ...@@ -522,10 +522,8 @@ static void __init free_unused_memmap(struct meminfo *mi)
#ifdef CONFIG_HIGHMEM #ifdef CONFIG_HIGHMEM
static inline void free_area_high(unsigned long pfn, unsigned long end) static inline void free_area_high(unsigned long pfn, unsigned long end)
{ {
for (; pfn < end; pfn++) { for (; pfn < end; pfn++)
__free_reserved_page(pfn_to_page(pfn)); free_highmem_page(pfn_to_page(pfn));
totalhigh_pages++;
}
} }
#endif #endif
...@@ -574,7 +572,6 @@ static void __init free_highpages(void) ...@@ -574,7 +572,6 @@ static void __init free_highpages(void)
if (start < end) if (start < end)
free_area_high(start, end); free_area_high(start, end);
} }
totalram_pages += totalhigh_pages;
#endif #endif
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册