diff options
Diffstat (limited to 'arch/sparc64/mm')
-rw-r--r-- | arch/sparc64/mm/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index c2b556106fc1..2ae143ba50d8 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c | |||
@@ -1461,7 +1461,7 @@ void free_initmem(void) | |||
1461 | p = virt_to_page(page); | 1461 | p = virt_to_page(page); |
1462 | 1462 | ||
1463 | ClearPageReserved(p); | 1463 | ClearPageReserved(p); |
1464 | set_page_count(p, 1); | 1464 | init_page_count(p); |
1465 | __free_page(p); | 1465 | __free_page(p); |
1466 | num_physpages++; | 1466 | num_physpages++; |
1467 | totalram_pages++; | 1467 | totalram_pages++; |
@@ -1477,7 +1477,7 @@ void free_initrd_mem(unsigned long start, unsigned long end) | |||
1477 | struct page *p = virt_to_page(start); | 1477 | struct page *p = virt_to_page(start); |
1478 | 1478 | ||
1479 | ClearPageReserved(p); | 1479 | ClearPageReserved(p); |
1480 | set_page_count(p, 1); | 1480 | init_page_count(p); |
1481 | __free_page(p); | 1481 | __free_page(p); |
1482 | num_physpages++; | 1482 | num_physpages++; |
1483 | totalram_pages++; | 1483 | totalram_pages++; |