patch-2.1.80 linux/drivers/scsi/BusLogic.c

Next file: linux/drivers/scsi/scsi.c
Previous file: linux/drivers/net/tulip.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.79/linux/drivers/scsi/BusLogic.c linux/drivers/scsi/BusLogic.c
@@ -2337,11 +2337,16 @@
   /*
     Issue the Test Command Complete Interrupt commands.
   */
-  InitialInterruptCount = kstat.interrupts[HostAdapter->IRQ_Channel];
+ 
+  InitialInterruptCount = 0;
+  for (i=0; i<NR_CPUS; i++)
+	InitialInterruptCount += kstat.interrupts[i][HostAdapter->IRQ_Channel];
   for (i = 0; i < TestCount; i++)
     BusLogic_Command(HostAdapter, BusLogic_TestCommandCompleteInterrupt,
 		     NULL, 0, NULL, 0);
-  FinalInterruptCount = kstat.interrupts[HostAdapter->IRQ_Channel];
+  FinalInterruptCount = 0;
+  for (i=0; i<NR_CPUS; i++)
+  	FinalInterruptCount += kstat.interrupts[i][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