Commit bc344a64 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] i386 irq.c ifdef cleanup

From: Rusty Russell <rusty@rustcorp.com.au>

From:  Josef 'Jeff' Sipek <jeffpc@optonline.net>

I just noticed the nested ifdefs, and made it little more readable.
parent 387ec9eb
...@@ -126,11 +126,9 @@ struct hw_interrupt_type no_irq_type = { ...@@ -126,11 +126,9 @@ struct hw_interrupt_type no_irq_type = {
}; };
atomic_t irq_err_count; atomic_t irq_err_count;
#ifdef CONFIG_X86_IO_APIC #if defined(CONFIG_X86_IO_APIC) && defined(APIC_MISMATCH_DEBUG)
#ifdef APIC_MISMATCH_DEBUG
atomic_t irq_mis_count; atomic_t irq_mis_count;
#endif #endif
#endif
/* /*
* Generic, controller-independent functions: * Generic, controller-independent functions:
...@@ -186,10 +184,8 @@ int show_interrupts(struct seq_file *p, void *v) ...@@ -186,10 +184,8 @@ int show_interrupts(struct seq_file *p, void *v)
seq_putc(p, '\n'); seq_putc(p, '\n');
#endif #endif
seq_printf(p, "ERR: %10u\n", atomic_read(&irq_err_count)); seq_printf(p, "ERR: %10u\n", atomic_read(&irq_err_count));
#ifdef CONFIG_X86_IO_APIC #if defined(CONFIG_X86_IO_APIC) && defined(APIC_MISMATCH_DEBUG)
#ifdef APIC_MISMATCH_DEBUG
seq_printf(p, "MIS: %10u\n", atomic_read(&irq_mis_count)); seq_printf(p, "MIS: %10u\n", atomic_read(&irq_mis_count));
#endif
#endif #endif
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment