diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-08-20 04:19:54 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-08-27 11:12:52 -0400 |
commit | 6b18ae3e2ff62daa9f181401759161dd8de0aadf (patch) | |
tree | 3e1c61c26c29a1a81d5f54917a92c37334d3c607 /arch/x86/kernel/x86_init.c | |
parent | 816c25e7d4fb6fd40022a376e8b7f45b1edf5a89 (diff) |
x86: Move memory_setup to x86_init_ops
memory_setup is overridden by x86_quirks and by paravirts with weak
functions and quirks. Unify the whole mess and make it an
unconditional x86_init_ops function which defaults to the standard
function and can be overridden by the early platform code.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/x86_init.c')
-rw-r--r-- | arch/x86/kernel/x86_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c index 1fff49a6858c..1965bff3489c 100644 --- a/arch/x86/kernel/x86_init.c +++ b/arch/x86/kernel/x86_init.c | |||
@@ -7,6 +7,7 @@ | |||
7 | 7 | ||
8 | #include <asm/bios_ebda.h> | 8 | #include <asm/bios_ebda.h> |
9 | #include <asm/setup.h> | 9 | #include <asm/setup.h> |
10 | #include <asm/e820.h> | ||
10 | 11 | ||
11 | void __cpuinit x86_init_noop(void) { } | 12 | void __cpuinit x86_init_noop(void) { } |
12 | 13 | ||
@@ -20,5 +21,6 @@ struct __initdata x86_init_ops x86_init = { | |||
20 | .probe_roms = x86_init_noop, | 21 | .probe_roms = x86_init_noop, |
21 | .reserve_resources = reserve_standard_io_resources, | 22 | .reserve_resources = reserve_standard_io_resources, |
22 | .reserve_ebda_region = reserve_ebda_region, | 23 | .reserve_ebda_region = reserve_ebda_region, |
24 | .memory_setup = default_machine_specific_memory_setup, | ||
23 | }, | 25 | }, |
24 | }; | 26 | }; |