linux.kernel - 26 new messages in 9 topics - digest
linux.kernel
http://groups.google.com/group/linux.kernel?hl=en
Today's topics:
* sparsemem: put usemap for one node together - 10 messages, 3 authors
http://groups.google.com/group/linux.kernel/t/a6a29cc058de25ea?hl=en
* use nr_cpus= to set nr_cpu_ids early - 2 messages, 1 author
http://groups.google.com/group/linux.kernel/t/2d2e61d165da6ee6?hl=en
* [PATCH 8/9] PCI / ACPI / PM: Platform support for PCI PME wake-up (rev. 7) -
1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/2164e63bc6a3877c?hl=en
* updated ptrace/core-dump patches for supporting xstate - V2 - 5 messages, 1
author
http://groups.google.com/group/linux.kernel/t/06e74467e61eef71?hl=en
* LZO irreversible output? - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/d82a693a6af1f717?hl=en
* API to consolidate PWM devices behind a common user and kernel interface - 4
messages, 1 author
http://groups.google.com/group/linux.kernel/t/ca42f3c42b1135b8?hl=en
* Ceph distributed file system client for 2.6.33 - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/da03a2a565e29bf7?hl=en
* Generic PWM API - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/1023276cf1177176?hl=en
* i2c-taos-evm bus driver - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/be50d93c7a49559d?hl=en
==============================================================================
TOPIC: sparsemem: put usemap for one node together
http://groups.google.com/group/linux.kernel/t/a6a29cc058de25ea?hl=en
==============================================================================
== 1 of 10 ==
Date: Tues, Feb 9 2010 11:50 am
From: Yinghai Lu
could save some buf instead of applying one by one
could help that system that is going to use early_res instead of bootmem
less entries in early_res make search more faster on system with more memory.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
---
mm/sparse.c | 84 ++++++++++++++++++++++++++++++++++++++++++++++------------
1 files changed, 66 insertions(+), 18 deletions(-)
diff --git a/mm/sparse.c b/mm/sparse.c
index 6ce4aab..0cdaf0b 100644
--- a/mm/sparse.c
+++ b/mm/sparse.c
@@ -271,7 +271,8 @@ static unsigned long *__kmalloc_section_usemap(void)
#ifdef CONFIG_MEMORY_HOTREMOVE
static unsigned long * __init
-sparse_early_usemap_alloc_pgdat_section(struct pglist_data *pgdat)
+sparse_early_usemaps_alloc_pgdat_section(struct pglist_data *pgdat,
+ unsigned long count)
{
unsigned long section_nr;
@@ -286,7 +287,7 @@ sparse_early_usemap_alloc_pgdat_section(struct pglist_data *pgdat)
* this problem.
*/
section_nr = pfn_to_section_nr(__pa(pgdat) >> PAGE_SHIFT);
- return alloc_bootmem_section(usemap_size(), section_nr);
+ return alloc_bootmem_section(usemap_size() * count, section_nr);
}
static void __init check_usemap_section_nr(int nid, unsigned long *usemap)
@@ -329,7 +330,8 @@ static void __init check_usemap_section_nr(int nid, unsigned long *usemap)
}
#else
static unsigned long * __init
-sparse_early_usemap_alloc_pgdat_section(struct pglist_data *pgdat)
+sparse_early_usemaps_alloc_pgdat_section(struct pglist_data *pgdat,
+ unsigned long count)
{
return NULL;
}
@@ -339,27 +341,40 @@ static void __init check_usemap_section_nr(int nid, unsigned long *usemap)
}
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home