Re: PATCH: /proc/irq/ fix

From: Roman Zippel (zippel@fh-brandenburg.de)
Date: Wed Mar 08 2000 - 12:46:27 EST


Hi,

> i believe we want to show all possible interrupts. (not all IRQ vectors,
> but all IRQs which are registered by an IRQ controller) The possibility to
> set IRQ affinity should not depend on wether a particular module is loaded
> or not.

Ok, then the following patch should be sufficient.

bye, Roman

--- arch/i386/kernel/irq.c.org Wed Mar 8 18:17:31 2000
+++ arch/i386/kernel/irq.c Wed Mar 8 18:43:49 2000
@@ -998,7 +998,7 @@
         struct proc_dir_entry *entry;
         char name [MAX_NAMELEN];
 
- if (!root_irq_dir || (irq_desc[irq].handler == &no_irq_type))
+ if (!root_irq_dir || irq_dir[irq] || (irq_desc[irq].handler == &no_irq_type))
                 return;
 
         memset(name, 0, MAX_NAMELEN);
@@ -1039,10 +1039,7 @@
         /*
          * Create entries for all existing IRQs.
          */
- for (i = 0; i < NR_IRQS; i++) {
- if (irq_desc[i].handler == &no_irq_type)
- continue;
+ for (i = 0; i < NR_IRQS; i++)
                 register_irq_proc(i);
- }
 }
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:14 EST