login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
1
Re: + add-remove_memory-for-ppc64-2.patch added to -mm tree
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>
To: <linux-kernel@...>
Cc: <akpm@...>, <mm-commits@...>, <pbadari@...>, <benh@...>, <galak@...>, <haveblue@...>, <paulus@...>, <tony.luck@...>
Subject:
Re: + add-remove_memory-for-ppc64-2.patch added to -mm tree
Date: Wednesday, October 31, 2007 - 8:52 pm
On Wed, 31 Oct 2007 15:58:33 -0700
akpm@linux-foundation.org
wrote:
quoted text
> +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; > + /* we can free mem_map at this point */ > +out: > + return ret; > +} > +EXPORT_SYMBOL_GPL(remove_memory);
Then, remove_memory() is now generic. Ok. Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [thread] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
Re: + add-remove_memory-for-ppc64-2.patch added to -mm tree
, KAMEZAWA Hiroyuki
, (Wed Oct 31, 8:52 pm)
[PATCH] trivial: SERIAL_NETX_CONSOLE provides console for Ne...
, Uwe
, (Thu Oct 18, 2:26 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Renato S. Yamane
Error -71 on device descriptor read/all
David Miller
Slow DOWN, please!!!
David Woodhouse
[GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in more dr...
linux-netdev
:
Kenny Chang
Multicast packet loss
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
Kok, Auke
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
David Miller
Re: [GIT]: Networking
git
:
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
729 guests
online.
Online users
zeekec
Syndicate