Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=de33b821f34dc9e2fabf81a8ba464f3ef039bd00 Commit: de33b821f34dc9e2fabf81a8ba464f3ef039bd00 Parent: 0c0e6195896535481173df98935ad8db174f4d45 Author: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> AuthorDate: Tue Oct 16 01:26:13 2007 -0700 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Tue Oct 16 09:43:02 2007 -0700
memory unplug: ia64 interface IA64 memory unplug interface. Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- arch/ia64/mm/init.c | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c index a096b30..947ec0c 100644 --- a/arch/ia64/mm/init.c +++ b/arch/ia64/mm/init.c @@ -721,7 +721,17 @@ int arch_add_memory(int nid, u64 start, u64 size) int remove_memory(u64 start, u64 size) { - return -EINVAL; + unsigned long start_pfn, end_pfn; + unsigned long timeout = 120 * HZ; + int ret; + start_pfn = start >> PAGE_SHIFT; + end_pfn = start_pfn + (size >> PAGE_SHIFT); + ret = offline_pages(start_pfn, end_pfn, timeout); + if (ret) + goto out; + /* we can free mem_map at this point */ +out: + return ret; } EXPORT_SYMBOL_GPL(remove_memory); #endif - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html