diff options
author | Dave Hansen <haveblue@us.ibm.com> | 2005-10-29 21:16:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 00:40:44 -0400 |
commit | 3947be1969a9ce455ec30f60ef51efb10e4323d1 (patch) | |
tree | 0b4b3b4c268beb7aa88cb685cce48b6bb5053c47 /mm/page_alloc.c | |
parent | bdc8cb984576ab5b550c8b24c6fa111a873503e3 (diff) |
[PATCH] memory hotplug: sysfs and add/remove functions
This adds generic memory add/remove and supporting functions for memory
hotplug into a new file as well as a memory hotplug kernel config option.
Individual architecture patches will follow.
For now, disable memory hotplug when swsusp is enabled. There's a lot of
churn there right now. We'll fix it up properly once it calms down.
Signed-off-by: Matt Tolentino <matthew.e.tolentino@intel.com>
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 817635f2ab62..183abf39b445 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -1686,7 +1686,7 @@ static void __init calculate_zone_totalpages(struct pglist_data *pgdat, | |||
1686 | * up by free_all_bootmem() once the early boot process is | 1686 | * up by free_all_bootmem() once the early boot process is |
1687 | * done. Non-atomic initialization, single-pass. | 1687 | * done. Non-atomic initialization, single-pass. |
1688 | */ | 1688 | */ |
1689 | void __init memmap_init_zone(unsigned long size, int nid, unsigned long zone, | 1689 | void __devinit memmap_init_zone(unsigned long size, int nid, unsigned long zone, |
1690 | unsigned long start_pfn) | 1690 | unsigned long start_pfn) |
1691 | { | 1691 | { |
1692 | struct page *page; | 1692 | struct page *page; |
@@ -2407,7 +2407,7 @@ static void setup_per_zone_lowmem_reserve(void) | |||
2407 | * that the pages_{min,low,high} values for each zone are set correctly | 2407 | * that the pages_{min,low,high} values for each zone are set correctly |
2408 | * with respect to min_free_kbytes. | 2408 | * with respect to min_free_kbytes. |
2409 | */ | 2409 | */ |
2410 | static void setup_per_zone_pages_min(void) | 2410 | void setup_per_zone_pages_min(void) |
2411 | { | 2411 | { |
2412 | unsigned long pages_min = min_free_kbytes >> (PAGE_SHIFT - 10); | 2412 | unsigned long pages_min = min_free_kbytes >> (PAGE_SHIFT - 10); |
2413 | unsigned long lowmem_pages = 0; | 2413 | unsigned long lowmem_pages = 0; |