Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99760
b: refs/heads/master
c: d867e53
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 8, 2008
1 parent 0b3e603 commit 8363631
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a27f5c51629c3d3b7718dd4be3d2722b472fafe
refs/heads/master: d867e5310bd3c560093d39669ef52ff7f1b5711a
3 changes: 3 additions & 0 deletions trunk/arch/x86/kernel/acpi/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,9 @@ int mp_config_acpi_gsi(unsigned char number, unsigned int devfn, u8 pin,
struct mpc_config_intsrc intsrc;
int ioapic;

if (!enable_update_mptable)
return 0;

/* print the entry should happen on mptable identically */
intsrc.mpc_type = MP_INTSRC;
intsrc.mpc_irqtype = mp_INT;
Expand Down
13 changes: 7 additions & 6 deletions trunk/arch/x86/kernel/mpparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
#include <mach_mpparse.h>
#endif

int enable_update_mptable;

/*
* Checksum an MP configuration block.
*/
Expand Down Expand Up @@ -295,10 +297,11 @@ void MP_intsrc_info(struct mpc_config_intsrc *m)

print_MP_intsrc_info(m);

for (i = 0; i < mp_irq_entries; i++) {
if (!mp_irq_mpc_intsrc_cmp(&mp_irqs[i], m))
return;
}
if (enable_update_mptable)
for (i = 0; i < mp_irq_entries; i++) {
if (!mp_irq_mpc_intsrc_cmp(&mp_irqs[i], m))
return;
}

assign_to_mp_irq(m, &mp_irqs[mp_irq_entries]);
if (++mp_irq_entries == MAX_IRQ_SOURCES)
Expand Down Expand Up @@ -1110,8 +1113,6 @@ static int __init replace_intsrc_all(struct mp_config_table *mpc,
return 0;
}

int __initdata enable_update_mptable;

static int __init update_mptable_setup(char *str)
{
enable_update_mptable = 1;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-x86/mpspec.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ extern void mp_config_acpi_legacy_irqs(void);
extern int mp_register_gsi(u32 gsi, int edge_level, int active_high_low);
extern void MP_intsrc_info(struct mpc_config_intsrc *m);
#ifdef CONFIG_X86_IO_APIC
extern int enable_update_mptable;
extern int mp_config_acpi_gsi(unsigned char number, unsigned int devfn, u8 pin,
u32 gsi, int triggering, int polarity);
#else
Expand Down

0 comments on commit 8363631

Please sign in to comment.