Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112686
b: refs/heads/master
c: a4dbc34
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 26, 2008
1 parent 70186dc commit eeb4908
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 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: 10d3285d0b3af641ee446f0be8f0a7f40cb515b6
refs/heads/master: a4dbc34d181e87a0d724dee365921e9251f831d4
5 changes: 2 additions & 3 deletions trunk/arch/x86/kernel/io_apic_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <asm/nmi.h>
#include <asm/msidef.h>
#include <asm/hypertransport.h>
#include <asm/setup.h>

#include <mach_apic.h>
#include <mach_apicdef.h>
Expand Down Expand Up @@ -1728,10 +1729,8 @@ static void __init setup_ioapic_ids_from_mpc(void)
unsigned char old_id;
unsigned long flags;

#ifdef CONFIG_X86_NUMAQ
if (found_numaq)
if (x86_quirks->setup_ioapic_ids && x86_quirks->setup_ioapic_ids())
return;
#endif

/*
* Don't check I/O APIC IDs for xAPIC systems. They have
Expand Down
7 changes: 7 additions & 0 deletions trunk/arch/x86/kernel/numaq_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ static void __init smp_read_mpc_oem(struct mp_config_oemtable *oemtable,
}
}

static int __init numaq_setup_ioapic_ids(void)
{
/* so can skip it */
return 1;
}

static struct x86_quirks numaq_x86_quirks __initdata = {
.arch_pre_time_init = numaq_pre_time_init,
.arch_time_init = NULL,
Expand All @@ -243,6 +249,7 @@ static struct x86_quirks numaq_x86_quirks __initdata = {
.mpc_oem_bus_info = mpc_oem_bus_info,
.mpc_oem_pci_bus = mpc_oem_pci_bus,
.smp_read_mpc_oem = smp_read_mpc_oem,
.setup_ioapic_ids = numaq_setup_ioapic_ids,
};

void numaq_mps_oem_check(struct mp_config_table *mpc, char *oem,
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-x86/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ struct x86_quirks {
void (*mpc_oem_pci_bus)(struct mpc_config_bus *m);
void (*smp_read_mpc_oem)(struct mp_config_oemtable *oemtable,
unsigned short oemsize);
int (*setup_ioapic_ids)(void);
};

extern struct x86_quirks *x86_quirks;
Expand Down

0 comments on commit eeb4908

Please sign in to comment.