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:
8b2888c
)
mm/metag: use free_highmem_page() to free highmem pages into buddy system
author
Jiang Liu
<
[email protected]
>
Mon, 29 Apr 2013 22:07:05 +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: James Hogan <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/metag/mm/init.c
patch
|
blob
|
history
diff --git
a/arch/metag/mm/init.c
b/arch/metag/mm/init.c
index c6784fb3a334608a4258f7bee27b187c7ce9f7fe..d05b8455c44cb9ac356c33da7473478c7047c44d 100644
(file)
--- a/
arch/metag/mm/init.c
+++ b/
arch/metag/mm/init.c
@@
-380,14
+380,8
@@
void __init mem_init(void)
#ifdef CONFIG_HIGHMEM
unsigned long tmp;
- for (tmp = highstart_pfn; tmp < highend_pfn; tmp++) {
- struct page *page = pfn_to_page(tmp);
- ClearPageReserved(page);
- init_page_count(page);
- __free_page(page);
- totalhigh_pages++;
- }
- totalram_pages += totalhigh_pages;
+ for (tmp = highstart_pfn; tmp < highend_pfn; tmp++)
+ free_highmem_page(pfn_to_page(tmp));
num_physpages += totalhigh_pages;
#endif /* CONFIG_HIGHMEM */