]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/MIPS: use free_highmem_page() to free highmem pages into buddy system
authorJiang Liu <liuj97@gmail.com>
Wed, 20 Mar 2013 04:07:19 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:33:49 +0000 (16:33 +1100)
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>
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