[SPARC64]: Allow CONFIG_MEMORY_HOTPLUG to build.
authorDavid S. Miller <davem@sunset.davemloft.net>
Sun, 19 Mar 2006 03:16:23 +0000 (19:16 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:16:40 +0000 (01:16 -0800)
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>
arch/sparc64/mm/init.c

index a1a364e537c7a2db0e026ec19b54647dbee6e0f1..c2b556106fc175cad9e92cef28eb9f99237392a9 100644 (file)
@@ -1805,3 +1805,21 @@ 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);
+       set_page_count(page, 0);
+       free_cold_page(page);
+       totalram_pages++;
+       num_physpages++;
+}
+
+int remove_memory(u64 start, u64 size)
+{
+       return -EINVAL;
+}
+
+#endif /* CONFIG_MEMORY_HOTPLUG */