Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abdefbdb authored by Adrian Bunk's avatar Adrian Bunk Committed by David S. Miller
Browse files

sparc64: remove online_page()



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: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8376005e
Loading
Loading
Loading
Loading
+0 −13
Original line number Original line Diff line number Diff line
@@ -2362,16 +2362,3 @@ void __flush_tlb_all(void)
	__asm__ __volatile__("wrpr	%0, 0, %%pstate"
	__asm__ __volatile__("wrpr	%0, 0, %%pstate"
			     : : "r" (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 */