Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84877
b: refs/heads/master
c: aa620ab
h: refs/heads/master
i:
  84875: 08268e5
v: v3
  • Loading branch information
Badari Pulavarty authored and Paul Mackerras committed Feb 8, 2008
1 parent d2b2ad1 commit 9cf610e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 44621be4b563fbce32007ebfac91dfe8f5692743
refs/heads/master: aa620abe756207222d234f785d41435fac486e06
16 changes: 16 additions & 0 deletions trunk/arch/powerpc/mm/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,22 @@ int __devinit arch_add_memory(int nid, u64 start, u64 size)
return __add_pages(zone, start_pfn, nr_pages);
}

#ifdef CONFIG_MEMORY_HOTREMOVE
int remove_memory(u64 start, u64 size)
{
unsigned long start_pfn, end_pfn;
int ret;

start_pfn = start >> PAGE_SHIFT;
end_pfn = start_pfn + (size >> PAGE_SHIFT);
ret = offline_pages(start_pfn, end_pfn, 120 * HZ);
if (ret)
goto out;
/* Arch-specific calls go here - next patch */
out:
return ret;
}
#endif /* CONFIG_MEMORY_HOTREMOVE */
#endif /* CONFIG_MEMORY_HOTPLUG */

void show_mem(void)
Expand Down

0 comments on commit 9cf610e

Please sign in to comment.