Skip to content

Commit

Permalink
mm/ARM: use free_highmem_page() to free highmem pages into buddy system
Browse files Browse the repository at this point in the history
Use helper function free_highmem_page() to free highmem pages into
the buddy system.

Signed-off-by: Jiang 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jiang Liu authored and Linus Torvalds committed Apr 29, 2013
1 parent cfa11e0 commit dd6911e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions arch/arm/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,10 +522,8 @@ static void __init free_unused_memmap(struct meminfo *mi)
#ifdef CONFIG_HIGHMEM
static inline void free_area_high(unsigned long pfn, unsigned long end)
{
for (; pfn < end; pfn++) {
__free_reserved_page(pfn_to_page(pfn));
totalhigh_pages++;
}
for (; pfn < end; pfn++)
free_highmem_page(pfn_to_page(pfn));
}
#endif

Expand Down Expand Up @@ -574,7 +572,6 @@ static void __init free_highpages(void)
if (start < end)
free_area_high(start, end);
}
totalram_pages += totalhigh_pages;
#endif
}

Expand Down

0 comments on commit dd6911e

Please sign in to comment.