diff options
author | Andy Whitcroft <apw@shadowen.org> | 2005-06-23 03:07:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-23 12:45:05 -0400 |
commit | 05b79bdcb48c18cd9b580c39e3efb9a1ab078151 (patch) | |
tree | 1767aaa7a4621ff4cf1a85c2078229de54272f30 /arch/i386/kernel/setup.c | |
parent | d41dee369bff3b9dcb6328d4d822926c28cc2594 (diff) |
[PATCH] sparsemem memory model for i386
Provide the architecture specific implementation for SPARSEMEM for i386 SMP
and NUMA systems.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Martin Bligh <mbligh@aracnet.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/setup.c')
-rw-r--r-- | arch/i386/kernel/setup.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c index 2bfbddebdbf8..0d689335c8d6 100644 --- a/arch/i386/kernel/setup.c +++ b/arch/i386/kernel/setup.c | |||
@@ -25,6 +25,7 @@ | |||
25 | 25 | ||
26 | #include <linux/sched.h> | 26 | #include <linux/sched.h> |
27 | #include <linux/mm.h> | 27 | #include <linux/mm.h> |
28 | #include <linux/mmzone.h> | ||
28 | #include <linux/tty.h> | 29 | #include <linux/tty.h> |
29 | #include <linux/ioport.h> | 30 | #include <linux/ioport.h> |
30 | #include <linux/acpi.h> | 31 | #include <linux/acpi.h> |
@@ -1022,7 +1023,7 @@ static void __init reserve_ebda_region(void) | |||
1022 | reserve_bootmem(addr, PAGE_SIZE); | 1023 | reserve_bootmem(addr, PAGE_SIZE); |
1023 | } | 1024 | } |
1024 | 1025 | ||
1025 | #ifndef CONFIG_DISCONTIGMEM | 1026 | #ifndef CONFIG_NEED_MULTIPLE_NODES |
1026 | void __init setup_bootmem_allocator(void); | 1027 | void __init setup_bootmem_allocator(void); |
1027 | static unsigned long __init setup_memory(void) | 1028 | static unsigned long __init setup_memory(void) |
1028 | { | 1029 | { |
@@ -1072,9 +1073,9 @@ void __init zone_sizes_init(void) | |||
1072 | free_area_init(zones_size); | 1073 | free_area_init(zones_size); |
1073 | } | 1074 | } |
1074 | #else | 1075 | #else |
1075 | extern unsigned long setup_memory(void); | 1076 | extern unsigned long __init setup_memory(void); |
1076 | extern void zone_sizes_init(void); | 1077 | extern void zone_sizes_init(void); |
1077 | #endif /* !CONFIG_DISCONTIGMEM */ | 1078 | #endif /* !CONFIG_NEED_MULTIPLE_NODES */ |
1078 | 1079 | ||
1079 | void __init setup_bootmem_allocator(void) | 1080 | void __init setup_bootmem_allocator(void) |
1080 | { | 1081 | { |
@@ -1475,6 +1476,7 @@ void __init setup_arch(char **cmdline_p) | |||
1475 | #endif | 1476 | #endif |
1476 | paging_init(); | 1477 | paging_init(); |
1477 | remapped_pgdat_init(); | 1478 | remapped_pgdat_init(); |
1479 | sparse_init(); | ||
1478 | zone_sizes_init(); | 1480 | zone_sizes_init(); |
1479 | 1481 | ||
1480 | /* | 1482 | /* |