projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec601a3
)
mm/MIPS: use free_highmem_page() to free highmem pages into buddy system
author
Jiang Liu
<
[email protected]
>
Mon, 29 Apr 2013 22:07:07 +0000
(15:07 -0700)
committer
Linus 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
patch
|
blob
|
history
diff --git
a/arch/mips/mm/init.c
b/arch/mips/mm/init.c
index 60f7c6122d6e00eeae2053a8a86d4f954b88a099..3d0346dbccf42c6d1c0b4007120c684c5fbc6c85 100644
(file)
--- a/
arch/mips/mm/init.c
+++ b/
arch/mips/mm/init.c
@@
-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