patch-2.4.0-prerelease linux/drivers/block/acsi.c
Next file: linux/drivers/block/ll_rw_blk.c
Previous file: linux/drivers/block/Makefile
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sun Dec 31 10:31:33 2000
- Orig file:
v2.4.0-test12/linux/drivers/block/acsi.c
- Orig date:
Mon Dec 11 17:59:44 2000
diff -u --recursive --new-file v2.4.0-test12/linux/drivers/block/acsi.c linux/drivers/block/acsi.c
@@ -404,7 +404,7 @@
* 6), the timeout is based on the 'jiffies' variable to provide exact
* timeouts for device probing etc.
* If interrupts are disabled, the number of tries is based on the
- * 'loops_per_sec' variable. A rough estimation is sufficient here...
+ * 'loops_per_jiffy' variable. A rough estimation is sufficient here...
*/
#define INT_LEVEL \
@@ -422,7 +422,7 @@
if (!(mfp.par_dt_reg & 0x20)) return( 1 );
}
else {
- long tries = loops_per_sec / HZ / 8 * timeout;
+ long tries = loops_per_jiffy / 8 * timeout;
while( --tries >= 0 )
if (!(mfp.par_dt_reg & 0x20)) return( 1 );
}
@@ -439,7 +439,7 @@
if (mfp.par_dt_reg & 0x20) return( 1 );
}
else {
- long tries = loops_per_sec * timeout / HZ / 8;
+ long tries = loops_per_jiffy * timeout / 8;
while( tries-- >= 0 )
if (mfp.par_dt_reg & 0x20) return( 1 );
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)