[3/9] NUMA-Q: declare functions and data earlier in discontig.c

William Lee Irwin III (wli@holomorphy.com)
Mon, 11 Nov 2002 18:20:20 -0800


This patch moves a number of declarations to the beginning of discontig.c
so that procedures early in the file can use some of the declarations.

discontig.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)

diff -urpN 01_late_memset/arch/i386/mm/discontig.c 02_early_decls/arch/i386/mm/discontig.c
--- 01_late_memset/arch/i386/mm/discontig.c 2002-11-11 16:21:37.000000000 -0800
+++ 02_early_decls/arch/i386/mm/discontig.c 2002-11-11 16:27:50.000000000 -0800
@@ -48,6 +48,14 @@ extern unsigned long max_low_pfn;
extern unsigned long totalram_pages;
extern unsigned long totalhigh_pages;

+#define LARGE_PAGE_BYTES (PTRS_PER_PTE * PAGE_SIZE)
+
+unsigned long node_remap_start_pfn[MAX_NUMNODES];
+unsigned long node_remap_size[MAX_NUMNODES];
+unsigned long node_remap_offset[MAX_NUMNODES];
+void *node_remap_start_vaddr[MAX_NUMNODES];
+void set_pmd_pfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags);
+
/*
* Find the highest page frame number we have available for the node
*/
@@ -114,14 +122,6 @@ static void __init register_bootmem_low_
}
}

-#define LARGE_PAGE_BYTES (PTRS_PER_PTE * PAGE_SIZE)
-
-unsigned long node_remap_start_pfn[MAX_NUMNODES];
-unsigned long node_remap_size[MAX_NUMNODES];
-unsigned long node_remap_offset[MAX_NUMNODES];
-void *node_remap_start_vaddr[MAX_NUMNODES];
-extern void set_pmd_pfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags);
-
void __init remap_numa_kva(void)
{
void *vaddr;
-
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/