diff options
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: |