Skip to content

Commit

Permalink
[SPARC64]: Allow CONFIG_MEMORY_HOTPLUG to build.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent 9b4006d commit 88d7079
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions arch/sparc64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 88d7079

Please sign in to comment.