IA64 irq.c: remove CONFIG_X86 code
PATCH 1/1 IA64 irq.c: remove CONFIG_X86 code
I don't see hos this code could ever be used.
Am I correct or did I miss something?
diffstat output:
arch/ia64/kernel/irq.c | 33 --------------------------------- 1 files changed, 33 deletions(-)
Signed-off-by Adrian Bunk <[email protected]>
arch/ia64/kernel/irq.c renamed from arch/ia64/kernel/irq.c.old +0 -33
@@ -132,23 +132,7 @@* each architecture has to answer this themselves, it doesn't deserve * a generic callback i think. */ -#ifdef CONFIG_X86 -printk (KERN_ERR "unexpected IRQ trap at vector %02x\n" , irq); -#ifdef CONFIG_X86_LOCAL_APIC -/* -* Currently unexpected vectors happen only on SMP and APIC. -* We _must_ ack these because every local APIC has only N -* irq slots per priority level, and a 'hanging, unacked' IRQ -* holds up an irq slot - in excessive cases (when multiple -* unexpected vectors occur) that might lock up the APIC -* completely. -*/ -ack_APIC_irq (); -#endif -#endif -#ifdef CONFIG_IA64 printk (KERN_ERR "Unexpected irq vector 0x%x on CPU %u!\n" , irq,smp_processor_id ()); -#endif }/* startup is the same as "enable", shutdown is same as "disable" */
@@ -166,11 +150,6 @@ };atomic_t irq_err_count; -#ifdef CONFIG_X86_IO_APIC -#ifdef APIC_MISMATCH_DEBUG -atomic_t irq_mis_count; -#endif -#endif /* * Generic, controller-independent functions:
@@ -220,19 +199,7 @@if (cpu_online (j))seq_printf (p,"%10u " ,nmi_count (j));seq_putc (p,'\n' ); -#ifdef CONFIG_X86_LOCAL_APIC -seq_puts (p,"LOC: " ); -for (j =0 ; j <NR_CPUS ; j++) -if (cpu_online (j)) -seq_printf (p,"%10u " , irq_stat[j].apic_timer_irqs); -seq_putc (p,'\n' ); -#endif seq_printf (p,"ERR: %10u\n" ,atomic_read (&irq_err_count)); -#ifdef CONFIG_X86_IO_APIC -#ifdef APIC_MISMATCH_DEBUG -seq_printf (p,"MIS: %10u\n" ,atomic_read (&irq_mis_count)); -#endif -#endif }return 0 ; }