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:
0f35486
)
mm/PPC: use free_highmem_page() to free highmem pages into buddy system
author
Jiang Liu
<
[email protected]
>
Mon, 29 Apr 2013 22:07:08 +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: Benjamin Herrenschmidt <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Jiang Liu <
[email protected]
>
Cc: Alexander Graf <
[email protected]
>
Cc: "Suzuki K. Poulose" <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/powerpc/mm/mem.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/mm/mem.c
b/arch/powerpc/mm/mem.c
index c756713aaabab4cdd41f5895816aa306f8e86b54..cd76c454942fd51c943c64f33ae2e7e24d3143a5 100644
(file)
--- a/
arch/powerpc/mm/mem.c
+++ b/
arch/powerpc/mm/mem.c
@@
-352,13
+352,9
@@
void __init mem_init(void)
struct page *page = pfn_to_page(pfn);
if (memblock_is_reserved(paddr))
continue;
- ClearPageReserved(page);
- init_page_count(page);
- __free_page(page);
- totalhigh_pages++;
+ free_highmem_page(page);
reservedpages--;
}
- totalram_pages += totalhigh_pages;
printk(KERN_DEBUG "High memory: %luk\n",
totalhigh_pages << (PAGE_SHIFT-10));
}