diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-08-20 05:11:52 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-08-31 03:35:45 -0400 |
commit | b3f1b617f49447df6c3f5fac9c225aaea8b724ea (patch) | |
tree | 9c1cc5a96be1330868312d7970583838790b14a3 /arch/x86/kernel/visws_quirks.c | |
parent | 90e1c6969d8711edb888a00ec54c74370f125c8f (diff) |
x86: Move get/find_smp_config to x86_init_ops
Replace the quirk machinery by a x86_init_ops function which defaults
to the standard implementation.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/visws_quirks.c')
-rw-r--r-- | arch/x86/kernel/visws_quirks.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/arch/x86/kernel/visws_quirks.c b/arch/x86/kernel/visws_quirks.c index 97c670df1aed..31e828118f8e 100644 --- a/arch/x86/kernel/visws_quirks.c +++ b/arch/x86/kernel/visws_quirks.c | |||
@@ -156,12 +156,8 @@ static void visws_machine_power_off(void) | |||
156 | outl(PIIX_SPECIAL_STOP, 0xCFC); | 156 | outl(PIIX_SPECIAL_STOP, 0xCFC); |
157 | } | 157 | } |
158 | 158 | ||
159 | static int __init visws_get_smp_config(unsigned int early) | 159 | static void __init visws_get_smp_config(unsigned int early) |
160 | { | 160 | { |
161 | /* | ||
162 | * Prevent MP-table parsing by the generic code: | ||
163 | */ | ||
164 | return 1; | ||
165 | } | 161 | } |
166 | 162 | ||
167 | /* | 163 | /* |
@@ -208,7 +204,7 @@ static void __init MP_processor_info(struct mpc_cpu *m) | |||
208 | apic_version[m->apicid] = ver; | 204 | apic_version[m->apicid] = ver; |
209 | } | 205 | } |
210 | 206 | ||
211 | static int __init visws_find_smp_config(unsigned int reserve) | 207 | static void __init visws_find_smp_config(unsigned int reserve) |
212 | { | 208 | { |
213 | struct mpc_cpu *mp = phys_to_virt(CO_CPU_TAB_PHYS); | 209 | struct mpc_cpu *mp = phys_to_virt(CO_CPU_TAB_PHYS); |
214 | unsigned short ncpus = readw(phys_to_virt(CO_CPU_NUM_PHYS)); | 210 | unsigned short ncpus = readw(phys_to_virt(CO_CPU_NUM_PHYS)); |
@@ -230,8 +226,6 @@ static int __init visws_find_smp_config(unsigned int reserve) | |||
230 | MP_processor_info(mp++); | 226 | MP_processor_info(mp++); |
231 | 227 | ||
232 | mp_lapic_addr = APIC_DEFAULT_PHYS_BASE; | 228 | mp_lapic_addr = APIC_DEFAULT_PHYS_BASE; |
233 | |||
234 | return 1; | ||
235 | } | 229 | } |
236 | 230 | ||
237 | static int visws_trap_init(void); | 231 | static int visws_trap_init(void); |
@@ -241,8 +235,6 @@ static struct x86_quirks visws_x86_quirks __initdata = { | |||
241 | .arch_pre_intr_init = visws_pre_intr_init, | 235 | .arch_pre_intr_init = visws_pre_intr_init, |
242 | .arch_intr_init = NULL, | 236 | .arch_intr_init = NULL, |
243 | .arch_trap_init = visws_trap_init, | 237 | .arch_trap_init = visws_trap_init, |
244 | .mach_get_smp_config = visws_get_smp_config, | ||
245 | .mach_find_smp_config = visws_find_smp_config, | ||
246 | }; | 238 | }; |
247 | 239 | ||
248 | void __init visws_early_detect(void) | 240 | void __init visws_early_detect(void) |
@@ -263,6 +255,8 @@ void __init visws_early_detect(void) | |||
263 | x86_quirks = &visws_x86_quirks; | 255 | x86_quirks = &visws_x86_quirks; |
264 | 256 | ||
265 | x86_init.resources.memory_setup = visws_memory_setup; | 257 | x86_init.resources.memory_setup = visws_memory_setup; |
258 | x86_init.mpparse.get_smp_config = visws_get_smp_config; | ||
259 | x86_init.mpparse.find_smp_config = visws_find_smp_config; | ||
266 | 260 | ||
267 | /* | 261 | /* |
268 | * Install reboot quirks: | 262 | * Install reboot quirks: |