diff options
author | Jiang Liu <liuj97@gmail.com> | 2013-04-29 18:07:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 18:54:32 -0400 |
commit | 0f354869e3eca76d2e9bbe5798d17a85dc975f73 (patch) | |
tree | 42f0a0cdc7266224feb5a515fccc5713bb40494e /arch | |
parent | ec601a34f5bbe9d155181410d854e3875df57c8b (diff) |
mm/MIPS: 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 <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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/mm/init.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 60f7c6122d6e..3d0346dbccf4 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -393,12 +393,8 @@ void __init mem_init(void) | |||
393 | SetPageReserved(page); | 393 | SetPageReserved(page); |
394 | continue; | 394 | continue; |
395 | } | 395 | } |
396 | ClearPageReserved(page); | 396 | free_highmem_page(page); |
397 | init_page_count(page); | ||
398 | __free_page(page); | ||
399 | totalhigh_pages++; | ||
400 | } | 397 | } |
401 | totalram_pages += totalhigh_pages; | ||
402 | num_physpages += totalhigh_pages; | 398 | num_physpages += totalhigh_pages; |
403 | #endif | 399 | #endif |
404 | 400 | ||