static DEFINE_SPINLOCK(ioapic_lock);
bool_t __read_mostly skip_ioapic_setup;
+bool_t __read_mostly ioapic_ack_new = 1;
#ifndef sis_apic_bug
/*
* Is the SiS APIC rmw bug present?
* -1 = don't know, 0 = no, 1 = yes
*/
-int sis_apic_bug = -1;
+s8 __read_mostly sis_apic_bug = -1;
#endif
/*
static struct irq_pin_list {
int apic, pin;
unsigned int next;
-} *irq_2_pin;
+} *__read_mostly irq_2_pin;
static unsigned int irq_2_pin_free_entry;
return;
}
-void print_IO_APIC(void)
+static void __init print_IO_APIC(void)
{
if (apic_verbosity != APIC_QUIET)
__print_IO_APIC();
* by Matt Domsch <Matt_Domsch@dell.com> Tue Dec 21 12:25:05 CST 1999
*/
-#ifndef CONFIG_X86_NUMAQ
static void __init setup_ioapic_ids_from_mpc(void)
{
union IO_APIC_reg_00 reg_00;
apic_printk(APIC_VERBOSE, " ok.\n");
}
}
-#else
-static void __init setup_ioapic_ids_from_mpc(void) { }
-#endif
/*
* There is a nasty bug in some older SMP boards, their mptable lies
return 0; /* don't check for pending */
}
-int __read_mostly ioapic_ack_new = 1;
-static void setup_ioapic_ack(char *s)
+static void __init setup_ioapic_ack(char *s)
{
if ( !strcmp(s, "old") )
ioapic_ack_new = 0;
{
}
-static void end_edge_ioapic_irq(unsigned int irq)
- {
- }
+#define end_edge_ioapic_irq disable_edge_ioapic_irq
/*
* Level and edge triggered IO-APIC interrupts need different handling,
ack_APIC_irq();
}
-static void end_lapic_irq(unsigned int irq) { /* nothing */ }
+#define end_lapic_irq end_edge_ioapic_irq
static hw_irq_controller lapic_irq_type = {
.typename = "local-APIC-edge",
* Older SiS APIC requires we rewrite the index regiser
*/
#ifdef __i386__
-extern int sis_apic_bug;
+extern s8 sis_apic_bug;
#else
#define sis_apic_bug 0
#endif
/* 1 if "noapic" boot option passed */
extern bool_t skip_ioapic_setup;
+extern bool_t ioapic_ack_new;
#ifdef CONFIG_ACPI_BOOT
extern int io_apic_get_unique_id (int ioapic, int apic_id);
void setup_IO_APIC(void);
void disable_IO_APIC(void);
-void print_IO_APIC(void);
void setup_ioapic_dest(void);
-extern unsigned long io_apic_irqs;
+extern unsigned int io_apic_irqs;
DECLARE_PER_CPU(unsigned int, irq_count);