lkml.org 
[lkml]   [2009]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 03/13] [VOYAGER] x86: add prefill_possible_map to x86_quirks
Date
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 05c6f6b..7782327 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 4c54bc0..797f7d7 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -937,7 +937,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.1.3


\
 
 \ /
  Last update: 2009-03-08 17:51    [W:0.464 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site