patch-2.1.81 linux/drivers/scsi/BusLogic.c
Next file: linux/drivers/scsi/Makefile
Previous file: linux/drivers/scsi/53c7,8xx.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed Jan 21 12:04:45 1998
- Orig file:
v2.1.80/linux/drivers/scsi/BusLogic.c
- Orig date:
Tue Jan 20 15:02:21 1998
diff -u --recursive --new-file v2.1.80/linux/drivers/scsi/BusLogic.c linux/drivers/scsi/BusLogic.c
@@ -2338,15 +2338,11 @@
Issue the Test Command Complete Interrupt commands.
*/
- InitialInterruptCount = 0;
- for (i=0; i<NR_CPUS; i++)
- InitialInterruptCount += kstat.interrupts[i][HostAdapter->IRQ_Channel];
+ InitialInterruptCount = kstat_irqs(HostAdapter->IRQ_Channel);
for (i = 0; i < TestCount; i++)
BusLogic_Command(HostAdapter, BusLogic_TestCommandCompleteInterrupt,
NULL, 0, NULL, 0);
- FinalInterruptCount = 0;
- for (i=0; i<NR_CPUS; i++)
- FinalInterruptCount += kstat.interrupts[i][HostAdapter->IRQ_Channel];
+ FinalInterruptCount = kstat_irqs(HostAdapter->IRQ_Channel);
/*
Verify that BusLogic_InterruptHandler was called at least TestCount
times. Shared IRQ Channels could cause more than TestCount interrupts to
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov