Messages in this thread Patch in this message | | | From | James Bottomley <> | Subject | [PATCH 03/14] [VOYAGER] x86: add prefill_possible_map to x86_quirks | Date | Tue, 14 Apr 2009 10:51:29 -0500 |
| |
Voyager needs a different prefill of the possible map, so abstract the operation through the x86 quirks mechanism.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> --- arch/x86/include/asm/setup.h | 1 + arch/x86/kernel/setup.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h index bdc2ada..56c99eb 100644 --- a/arch/x86/include/asm/setup.h +++ b/arch/x86/include/asm/setup.h @@ -31,6 +31,7 @@ struct x86_quirks { void (*smp_read_mpc_oem)(struct mpc_oemtable *oemtable, unsigned short oemsize); int (*setup_ioapic_ids)(void); + void (*prefill_possible_map)(void); }; extern void x86_quirk_pre_intr_init(void); diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index b415843..17fc85f 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -960,7 +960,10 @@ void __init setup_arch(char **cmdline_p) get_smp_config(); #endif - prefill_possible_map(); + if (x86_quirks->prefill_possible_map) + x86_quirks->prefill_possible_map(); + else + prefill_possible_map(); #ifdef CONFIG_X86_64 init_cpu_to_node(); -- 1.6.2.1
| |