Skip to content

Commit

Permalink
sparc64: remove online_page()
Browse files Browse the repository at this point in the history
The identical online_page() implementations from all architectures got 
moved to mm/memory_hotplug.c - except for the sparc64 one that even was 
dead code due to MEMORY_HOTPLUG not being available there.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Adrian Bunk authored and David S. Miller committed May 5, 2008
1 parent 8376005 commit abdefbd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions arch/sparc64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -2362,16 +2362,3 @@ void __flush_tlb_all(void)
__asm__ __volatile__("wrpr %0, 0, %%pstate"
: : "r" (pstate));
}

#ifdef CONFIG_MEMORY_HOTPLUG

void online_page(struct page *page)
{
ClearPageReserved(page);
init_page_count(page);
__free_page(page);
totalram_pages++;
num_physpages++;
}

#endif /* CONFIG_MEMORY_HOTPLUG */

0 comments on commit abdefbd

Please sign in to comment.