patch-2.4.9 linux/arch/alpha/kernel/irq.c
Next file: linux/arch/alpha/kernel/osf_sys.c
Previous file: linux/arch/alpha/kernel/alpha_ksyms.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sun Aug 12 10:38:48 2001
- Orig file:
v2.4.8/linux/arch/alpha/kernel/irq.c
- Orig date:
Tue Jul 3 17:08:18 2001
diff -u --recursive --new-file v2.4.8/linux/arch/alpha/kernel/irq.c linux/arch/alpha/kernel/irq.c
@@ -580,6 +580,9 @@
* SMP cross-CPU interrupts have their own specific
* handlers).
*/
+
+#define MAX_ILLEGAL_IRQS 16
+
void
handle_irq(int irq, struct pt_regs * regs)
{
@@ -597,9 +600,11 @@
irq_desc_t *desc = irq_desc + irq;
struct irqaction * action;
unsigned int status;
-
- if ((unsigned) irq > ACTUAL_NR_IRQS) {
+ static unsigned int illegal_count=0;
+
+ if ((unsigned) irq > ACTUAL_NR_IRQS && illegal_count < MAX_ILLEGAL_IRQS ) {
irq_err_count++;
+ illegal_count++;
printk(KERN_CRIT "device_interrupt: illegal interrupt %d\n",
irq);
return;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)