aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-03-19 03:50:35 -0400
committerIngo Molnar <mingo@elte.hu>2009-03-19 03:52:13 -0400
commitc58603e81b3ed4f1c7352e091fe43fd0bd8d06cc (patch)
tree08f5284104536daaf6ca788788bb72c3e75b0a9b /arch
parenta6830278568a8bb9758aac152db15187741e0113 (diff)
x86: mpparse: clean up code by introducing a few helper functions, fix
Impact: fix boot crash This fixes commit a6830278568a8bb9758aac152db15187741e0113. Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com> Cc: Yinghai Lu <yinghai@kernel.org> LKML-Reference: <1237403503.22438.21.camel@ht.satnam> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/mpparse.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c
index 58ddf6259afb..290cb57f4697 100644
--- a/arch/x86/kernel/mpparse.c
+++ b/arch/x86/kernel/mpparse.c
@@ -319,23 +319,23 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early)
319 case MP_PROCESSOR: 319 case MP_PROCESSOR:
320 /* ACPI may have already provided this data */ 320 /* ACPI may have already provided this data */
321 if (!acpi_lapic) 321 if (!acpi_lapic)
322 MP_processor_info((struct mpc_cpu *)&mpt); 322 MP_processor_info((struct mpc_cpu *)mpt);
323 skip_entry(&mpt, &count, sizeof(struct mpc_cpu)); 323 skip_entry(&mpt, &count, sizeof(struct mpc_cpu));
324 break; 324 break;
325 case MP_BUS: 325 case MP_BUS:
326 MP_bus_info((struct mpc_bus *)&mpt); 326 MP_bus_info((struct mpc_bus *)mpt);
327 skip_entry(&mpt, &count, sizeof(struct mpc_bus)); 327 skip_entry(&mpt, &count, sizeof(struct mpc_bus));
328 break; 328 break;
329 case MP_IOAPIC: 329 case MP_IOAPIC:
330 MP_ioapic_info((struct mpc_ioapic *)&mpt); 330 MP_ioapic_info((struct mpc_ioapic *)mpt);
331 skip_entry(&mpt, &count, sizeof(struct mpc_ioapic)); 331 skip_entry(&mpt, &count, sizeof(struct mpc_ioapic));
332 break; 332 break;
333 case MP_INTSRC: 333 case MP_INTSRC:
334 MP_intsrc_info((struct mpc_intsrc *)&mpt); 334 MP_intsrc_info((struct mpc_intsrc *)mpt);
335 skip_entry(&mpt, &count, sizeof(struct mpc_intsrc)); 335 skip_entry(&mpt, &count, sizeof(struct mpc_intsrc));
336 break; 336 break;
337 case MP_LINTSRC: 337 case MP_LINTSRC:
338 MP_lintsrc_info((struct mpc_lintsrc *)&mpt); 338 MP_lintsrc_info((struct mpc_lintsrc *)mpt);
339 skip_entry(&mpt, &count, sizeof(struct mpc_lintsrc)); 339 skip_entry(&mpt, &count, sizeof(struct mpc_lintsrc));
340 break; 340 break;
341 default: 341 default:
@@ -902,7 +902,7 @@ static int __init replace_intsrc_all(struct mpc_table *mpc,
902 skip_entry(&mpt, &count, sizeof(struct mpc_ioapic)); 902 skip_entry(&mpt, &count, sizeof(struct mpc_ioapic));
903 break; 903 break;
904 case MP_INTSRC: 904 case MP_INTSRC:
905 check_irq_src((struct mpc_intsrc *)&mpt, &nr_m_spare); 905 check_irq_src((struct mpc_intsrc *)mpt, &nr_m_spare);
906 skip_entry(&mpt, &count, sizeof(struct mpc_intsrc)); 906 skip_entry(&mpt, &count, sizeof(struct mpc_intsrc));
907 break; 907 break;
908 case MP_LINTSRC: 908 case MP_LINTSRC: