Commit 88d70794 authored by David S. Miller's avatar David S. Miller

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent 9b4006dc
...@@ -1805,3 +1805,21 @@ void __flush_tlb_all(void) ...@@ -1805,3 +1805,21 @@ 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);
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 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment