patch-1.3.35 linux/arch/i386/kernel/irq.c
Next file: linux/arch/sparc/config.in
Previous file: linux/arch/i386/config.in
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Sat Oct 14 10:58:47 1995
- Orig file:
v1.3.34/linux/arch/i386/kernel/irq.c
- Orig date:
Wed Oct 4 14:14:28 1995
diff -u --recursive --new-file v1.3.34/linux/arch/i386/kernel/irq.c linux/arch/i386/kernel/irq.c
@@ -214,10 +214,8 @@
#endif
kstat.interrupts[irq]++;
-#ifdef CONFIG_RANDOM
if (action->flags & SA_SAMPLE_RANDOM)
add_interrupt_randomness(irq);
-#endif
action->handler(irq, regs);
}
@@ -236,10 +234,8 @@
#endif
kstat.interrupts[irq]++;
-#ifdef CONFIG_RANDOM
if (action->flags & SA_SAMPLE_RANDOM)
add_interrupt_randomness(irq);
-#endif
action->handler(irq, NULL);
}
@@ -258,6 +254,8 @@
return -EBUSY;
if (!handler)
return -EINVAL;
+ if (irqflags & SA_SAMPLE_RANDOM)
+ rand_initialize_irq(irq);
save_flags(flags);
cli();
action->handler = handler;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this