diff options
author | mdodd <mdodd@FreeBSD.org> | 2002-11-10 03:45:49 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2002-11-10 03:45:49 +0000 |
commit | 55c878faa1969b792313405f42e5c61771d3f9d3 (patch) | |
tree | bc0ccae0c4ee3304e2b551b6ce426868c103867f /sys/dev/scd | |
parent | f6245015b2bf63a84f06766fae0de37126c3ef46 (diff) | |
download | FreeBSD-src-55c878faa1969b792313405f42e5c61771d3f9d3.zip FreeBSD-src-55c878faa1969b792313405f42e5c61771d3f9d3.tar.gz |
Replace {disable,enable}_intr() with critical_{enter,exit}().
Diffstat (limited to 'sys/dev/scd')
-rw-r--r-- | sys/dev/scd/scd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c index fb91ddd..dfa13bb 100644 --- a/sys/dev/scd/scd.c +++ b/sys/dev/scd/scd.c @@ -827,7 +827,7 @@ writeparam: } /* send the read command */ - disable_intr(); + critical_enter(); SCD_WRITE(sc, OREG_WPARAMS, sdata[0]); SCD_WRITE(sc, OREG_WPARAMS, sdata[1]); SCD_WRITE(sc, OREG_WPARAMS, sdata[2]); @@ -835,7 +835,7 @@ writeparam: SCD_WRITE(sc, OREG_WPARAMS, 0); SCD_WRITE(sc, OREG_WPARAMS, 1); SCD_WRITE(sc, OREG_COMMAND, CMD_READ); - enable_intr(); + critical_exit(); mbx->count = RDELAY_WAITREAD; for (i = 0; i < 50; i++) { |