projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa6b544
)
numa: move large array from stack to _initdata section
author
Mike Travis
<
[email protected]
>
Sat, 5 Apr 2008 01:11:09 +0000
(18:11 -0700)
committer
Ingo Molnar
<
[email protected]
>
Sat, 19 Apr 2008 17:44:58 +0000
(19:44 +0200)
* Move large array "struct bootnode nodes" from stack to _initdata
section to reduce amount of stack space required.
Cc: H. Peter Anvin <
[email protected]
>
Signed-off-by: Mike Travis <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/mm/numa_64.c
patch
|
blob
|
history
diff --git
a/arch/x86/mm/numa_64.c
b/arch/x86/mm/numa_64.c
index 2ea56f48f29b506c3a180bfd79b3bdb62bf5fd2c..3f6c53c0e003b6f2478a346a08634bbe73d404aa 100644
(file)
--- a/
arch/x86/mm/numa_64.c
+++ b/
arch/x86/mm/numa_64.c
@@
-380,9
+380,10
@@
static int __init split_nodes_by_size(struct bootnode *nodes, u64 *addr,
* Sets up the system RAM area from start_pfn to end_pfn according to the
* numa=fake command-line option.
*/
+static struct bootnode nodes[MAX_NUMNODES] __initdata;
+
static int __init numa_emulation(unsigned long start_pfn, unsigned long end_pfn)
{
- struct bootnode nodes[MAX_NUMNODES];
u64 size, addr = start_pfn << PAGE_SHIFT;
u64 max_addr = end_pfn << PAGE_SHIFT;
int num_nodes = 0, num = 0, coeff_flag, coeff = -1, i;