aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/mm/init.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-03-18 22:16:23 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 04:16:40 -0500
commit88d7079458f87d6f2d2261b2f87b7b9416019f5e (patch)
tree7e27074dcb05a795c15ed9455134c9e676b63aff /arch/sparc64/mm/init.c
parent9b4006dcf6a8c43bd482b9c1ec576f0ed270ef23 (diff)
[SPARC64]: Allow CONFIG_MEMORY_HOTPLUG to build.
online_page() is straightforward, and then add a dummy remove_memory() that returns -EINVAL just like i386. There is no point in implementing remove_memory() since __remove_pages() has no implementation either. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/mm/init.c')
-rw-r--r--arch/sparc64/mm/init.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c
index a1a364e537c7..c2b556106fc1 100644
--- a/arch/sparc64/mm/init.c
+++ b/arch/sparc64/mm/init.c
@@ -1805,3 +1805,21 @@ void __flush_tlb_all(void)
1805 __asm__ __volatile__("wrpr %0, 0, %%pstate" 1805 __asm__ __volatile__("wrpr %0, 0, %%pstate"
1806 : : "r" (pstate)); 1806 : : "r" (pstate));
1807} 1807}
1808
1809#ifdef CONFIG_MEMORY_HOTPLUG
1810
1811void online_page(struct page *page)
1812{
1813 ClearPageReserved(page);
1814 set_page_count(page, 0);
1815 free_cold_page(page);
1816 totalram_pages++;
1817 num_physpages++;
1818}
1819
1820int remove_memory(u64 start, u64 size)
1821{
1822 return -EINVAL;
1823}
1824
1825#endif /* CONFIG_MEMORY_HOTPLUG */