diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-04-07 07:11:09 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:34 -0400 |
commit | ba1ce61ff226bddebd2101a29fe56b4664ef7cec (patch) | |
tree | e342590c270d14644e4aa8d1c25a015f3a648624 /arch | |
parent | 61048c6328819b0973ef662f6d46f2e2bc753ceb (diff) |
x86: don't set io apic features if io-apic is not enabled, fix
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/mpparse_32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c index 09cb77813680..44f52f623fd6 100644 --- a/arch/x86/kernel/mpparse_32.c +++ b/arch/x86/kernel/mpparse_32.c | |||
@@ -429,9 +429,9 @@ static int __init smp_read_mpc(struct mp_config_table *mpc) | |||
429 | struct mpc_config_ioapic *m= | 429 | struct mpc_config_ioapic *m= |
430 | (struct mpc_config_ioapic *)mpt; | 430 | (struct mpc_config_ioapic *)mpt; |
431 | MP_ioapic_info(m); | 431 | MP_ioapic_info(m); |
432 | mpt+=sizeof(*m); | ||
433 | count+=sizeof(*m); | ||
434 | #endif | 432 | #endif |
433 | mpt+=sizeof(struct mpc_config_ioapic); | ||
434 | count+=sizeof(struct mpc_config_ioapic); | ||
435 | break; | 435 | break; |
436 | } | 436 | } |
437 | case MP_INTSRC: | 437 | case MP_INTSRC: |
@@ -441,9 +441,9 @@ static int __init smp_read_mpc(struct mp_config_table *mpc) | |||
441 | (struct mpc_config_intsrc *)mpt; | 441 | (struct mpc_config_intsrc *)mpt; |
442 | 442 | ||
443 | MP_intsrc_info(m); | 443 | MP_intsrc_info(m); |
444 | mpt+=sizeof(*m); | ||
445 | count+=sizeof(*m); | ||
446 | #endif | 444 | #endif |
445 | mpt+=sizeof(struct mpc_config_intsrc); | ||
446 | count+=sizeof(struct mpc_config_intsrc); | ||
447 | break; | 447 | break; |
448 | } | 448 | } |
449 | case MP_LINTSRC: | 449 | case MP_LINTSRC: |