summaryrefslogtreecommitdiffstats
path: root/arch/cris/mm/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/cris/mm/init.c')
-rw-r--r--arch/cris/mm/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/cris/mm/init.c b/arch/cris/mm/init.c
index 31a0018..b7842ff 100644
--- a/arch/cris/mm/init.c
+++ b/arch/cris/mm/init.c
@@ -216,7 +216,7 @@ free_initmem(void)
addr = (unsigned long)(&__init_begin);
for (; addr < (unsigned long)(&__init_end); addr += PAGE_SIZE) {
ClearPageReserved(virt_to_page(addr));
- set_page_count(virt_to_page(addr), 1);
+ init_page_count(virt_to_page(addr));
free_page(addr);
totalram_pages++;
}
OpenPOWER on IntegriCloud