mm/MIPS: use free_highmem_page() to free highmem pages into buddy system
authorJiang Liu <[email protected]>
Mon, 29 Apr 2013 22:07:07 +0000 (15:07 -0700)
committerLinus Torvalds <[email protected]>
Mon, 29 Apr 2013 22:54:32 +0000 (15:54 -0700)
Use helper function free_highmem_page() to free highmem pages into
the buddy system.

Signed-off-by: Jiang Liu <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: David Daney <[email protected]>
Cc: Cong Wang <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/mips/mm/init.c

index 60f7c6122d6e00eeae2053a8a86d4f954b88a099..3d0346dbccf42c6d1c0b4007120c684c5fbc6c85 100644 (file)
@@ -393,12 +393,8 @@ void __init mem_init(void)
                        SetPageReserved(page);
                        continue;
                }
-               ClearPageReserved(page);
-               init_page_count(page);
-               __free_page(page);
-               totalhigh_pages++;
+               free_highmem_page(page);
        }
-       totalram_pages += totalhigh_pages;
        num_physpages += totalhigh_pages;
 #endif