]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
mm/MIPS: use free_highmem_page() to free highmem pages into buddy system
authorJiang Liu <liuj97@gmail.com>
Mon, 29 Apr 2013 22:07:07 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <jiang.liu@huawei.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: David Daney <david.daney@cavium.com>
Cc: Cong Wang <amwang@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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