diff options
author | Johannes Weiner <hannes@saeurebad.de> | 2008-07-24 00:26:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:14 -0400 |
commit | b61bfa3c462671c48a51fb5c31af337c5a996a04 (patch) | |
tree | 020363fd43a85ddde9998759150b428ee794dae6 /arch/sparc64/mm/init.c | |
parent | 8b05c7e6e159d2f33c9275281b8b909a89eb7c5d (diff) |
mm: move bootmem descriptors definition to a single place
There are a lot of places that define either a single bootmem descriptor or an
array of them. Use only one central array with MAX_NUMNODES items instead.
Signed-off-by: Johannes Weiner <hannes@saeurebad.de>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Kyle McMartin <kyle@parisc-linux.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sparc64/mm/init.c')
-rw-r--r-- | arch/sparc64/mm/init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index 84898c44dd4d..713297473951 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c | |||
@@ -788,7 +788,6 @@ int numa_cpu_lookup_table[NR_CPUS]; | |||
788 | cpumask_t numa_cpumask_lookup_table[MAX_NUMNODES]; | 788 | cpumask_t numa_cpumask_lookup_table[MAX_NUMNODES]; |
789 | 789 | ||
790 | #ifdef CONFIG_NEED_MULTIPLE_NODES | 790 | #ifdef CONFIG_NEED_MULTIPLE_NODES |
791 | static bootmem_data_t plat_node_bdata[MAX_NUMNODES]; | ||
792 | 791 | ||
793 | struct mdesc_mblock { | 792 | struct mdesc_mblock { |
794 | u64 base; | 793 | u64 base; |
@@ -871,7 +870,7 @@ static void __init allocate_node_data(int nid) | |||
871 | NODE_DATA(nid) = __va(paddr); | 870 | NODE_DATA(nid) = __va(paddr); |
872 | memset(NODE_DATA(nid), 0, sizeof(struct pglist_data)); | 871 | memset(NODE_DATA(nid), 0, sizeof(struct pglist_data)); |
873 | 872 | ||
874 | NODE_DATA(nid)->bdata = &plat_node_bdata[nid]; | 873 | NODE_DATA(nid)->bdata = &bootmem_node_data[nid]; |
875 | #endif | 874 | #endif |
876 | 875 | ||
877 | p = NODE_DATA(nid); | 876 | p = NODE_DATA(nid); |