From: Jiang Liu Date: Wed, 20 Mar 2013 04:07:18 +0000 (+1100) Subject: mm/ARM: use free_highmem_page() to free highmem pages into buddy system X-Git-Tag: next-20130320~2^2~371 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=59ac065f3f4e4ad911713c70738fce6d775ad71d;p=karo-tx-linux.git 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: Jiang Liu Cc: Russell King Cc: Linus Walleij Cc: Marek Szyprowski Cc: Stephen Boyd Signed-off-by: Andrew Morton --- diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 611f21772fa8..9a5cdc01fcdf 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -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 @@ -574,7 +572,6 @@ static void __init free_highpages(void) if (start < end) free_area_high(start, end); } - totalram_pages += totalhigh_pages; #endif }