diff --git a/arch/x86/kernel/i8259_64.c b/arch/x86/kernel/i8259_64.c index d3edb9f23f2c874b152d2cec34533e0d82022268..fa57a15685082294e7b2d33c5d0bb450b2348d56 100644 --- a/arch/x86/kernel/i8259_64.c +++ b/arch/x86/kernel/i8259_64.c @@ -456,7 +456,9 @@ void __init init_ISA_irqs (void) } } -void __init init_IRQ(void) +void init_IRQ(void) __attribute__((weak, alias("native_init_IRQ"))); + +void __init native_init_IRQ(void) { int i; diff --git a/include/asm-x86/hw_irq_64.h b/include/asm-x86/hw_irq_64.h index a346159b6ac3211a7285381adffda5b282f9517f..312a58d6dac65cc96e4b4e0fd519650143c6c58a 100644 --- a/include/asm-x86/hw_irq_64.h +++ b/include/asm-x86/hw_irq_64.h @@ -141,6 +141,7 @@ extern void print_IO_APIC(void); extern int IO_APIC_get_PCI_irq_vector(int bus, int slot, int fn); extern void send_IPI(int dest, int vector); extern void setup_ioapic_dest(void); +extern void native_init_IRQ(void); extern unsigned long io_apic_irqs;