s/HZ/hz/
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Fri, 27 Feb 1981 19:15:28 +0000 (11:15 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Fri, 27 Feb 1981 19:15:28 +0000 (11:15 -0800)
SCCS-vsn: sys/vax/uba/dz.c 4.19
SCCS-vsn: sys/vax/mba/hp.c 4.16
SCCS-vsn: sys/vax/uba/lp.c 4.7
SCCS-vsn: sys/vax/uba/rk.c 4.16
SCCS-vsn: sys/vax/uba/uba.c 4.17
SCCS-vsn: sys/vax/uba/up.c 4.26
SCCS-vsn: sys/vax/uba/va.c 4.6
SCCS-vsn: sys/vax/uba/vp.c 4.6

usr/src/sys/vax/mba/hp.c
usr/src/sys/vax/uba/dz.c
usr/src/sys/vax/uba/lp.c
usr/src/sys/vax/uba/rk.c
usr/src/sys/vax/uba/uba.c
usr/src/sys/vax/uba/up.c
usr/src/sys/vax/uba/va.c
usr/src/sys/vax/uba/vp.c

index 0345eb4..1ace854 100644 (file)
@@ -1,4 +1,4 @@
-/*     hp.c    4.15    81/02/25        */
+/*     hp.c    4.16    81/02/27        */
 
 #include "hp.h"
 #if NHP > 0
 
 #include "hp.h"
 #if NHP > 0
@@ -112,7 +112,7 @@ hpdkinit(mi)
        register struct hpst *st = &hpst[mi->mi_type];
 
        if (mi->mi_dk >= 0)
        register struct hpst *st = &hpst[mi->mi_type];
 
        if (mi->mi_dk >= 0)
-               dk_mspw[mi->mi_dk] = 1.0 / HZ / (st->nsect * 256);
+               dk_mspw[mi->mi_dk] = 1.0 / 60 / (st->nsect * 256);
 }
 
 hpstrategy(bp)
 }
 
 hpstrategy(bp)
index 0a88461..5eaa4d5 100644 (file)
@@ -1,4 +1,4 @@
-/*     dz.c    4.18    %G%     */
+/*     dz.c    4.19    %G%     */
 
 #include "dz.h"
 #if NDZ > 0
 
 #include "dz.h"
 #if NDZ > 0
@@ -135,7 +135,7 @@ dzattach(ui)
        dzsoftCAR[ui->ui_unit] = ui->ui_flags;
        if (dz_timer == 0) {
                dz_timer++;
        dzsoftCAR[ui->ui_unit] = ui->ui_flags;
        if (dz_timer == 0) {
                dz_timer++;
-               timeout(dzscan, (caddr_t)0, HZ);
+               timeout(dzscan, (caddr_t)0, hz);
        }
        return (1);
 }
        }
        return (1);
 }
@@ -452,7 +452,7 @@ dzscan()
                        }
                }
        }
                        }
                }
        }
-       timeout(dzscan, (caddr_t)0, 2*HZ);
+       timeout(dzscan, (caddr_t)0, 2*hz);
 }
 
 dztimer()
 }
 
 dztimer()
index 6c1e0fa..38d2679 100644 (file)
@@ -1,4 +1,4 @@
-/*     lp.c    4.6     81/02/16        */
+/*     lp.c    4.7     81/02/27        */
 
 #include "lp.h"
 #if NLP11 > 0
 
 #include "lp.h"
 #if NLP11 > 0
@@ -74,7 +74,7 @@ lpopen(dev, flag)
        spl4();
        if ((lp11.state&TOUT) == 0) {
                lp11.state |= TOUT;
        spl4();
        if ((lp11.state&TOUT) == 0) {
                lp11.state |= TOUT;
-               timeout(lptout, 0, 10*HZ);
+               timeout(lptout, 0, 10*hz);
        }
        spl0();
        lpcanon('\f');
        }
        spl0();
        lpcanon('\f');
@@ -245,7 +245,7 @@ lptout()
 
        if ((lp11.state&MOD) != 0) {
                lp11.state &= ~MOD;             /* something happened */
 
        if ((lp11.state&MOD) != 0) {
                lp11.state &= ~MOD;             /* something happened */
-               timeout(lptout, 0, 2*HZ);       /* so don't sweat */
+               timeout(lptout, 0, 2*hz);       /* so don't sweat */
                return;
        }
        sr = &LPADDR->lpsr;
                return;
        }
        sr = &LPADDR->lpsr;
@@ -256,7 +256,7 @@ lptout()
        }
        if (lp11.outq.c_cc && (*sr&DONE) && (*sr&ERROR)==0)
                lpintr();                       /* ready to go */
        }
        if (lp11.outq.c_cc && (*sr&DONE) && (*sr&ERROR)==0)
                lpintr();                       /* ready to go */
-       timeout(lptout, 0, 10*HZ);
+       timeout(lptout, 0, 10*hz);
 }
 
 /*ARGSUSED*/
 }
 
 /*ARGSUSED*/
index 3820cdf..56e9b9c 100644 (file)
@@ -1,4 +1,4 @@
-/*     rk.c    4.15    %G%     */
+/*     rk.c    4.16    %G%     */
 
 #include "rk.h"
 #if NHK > 0
 
 #include "rk.h"
 #if NHK > 0
@@ -122,11 +122,11 @@ rkattach(ui)
 {
 
        if (rkwstart == 0) {
 {
 
        if (rkwstart == 0) {
-               timeout(rkwatch, (caddr_t)0, HZ);
+               timeout(rkwatch, (caddr_t)0, hz);
                rkwstart++;
        }
        if (ui->ui_dk >= 0)
                rkwstart++;
        }
        if (ui->ui_dk >= 0)
-               dk_mspw[ui->ui_dk] = 1.0 / (HZ * NRKSECT * 256);
+               dk_mspw[ui->ui_dk] = 1.0 / (60 * NRKSECT * 256);
        rkip[ui->ui_ctlr][ui->ui_slave] = ui;
        rk_softc[ui->ui_ctlr].sc_ndrive++;
        rkcyl[ui->ui_unit] = -1;
        rkip[ui->ui_ctlr][ui->ui_slave] = ui;
        rk_softc[ui->ui_ctlr].sc_ndrive++;
        rkcyl[ui->ui_unit] = -1;
@@ -543,7 +543,7 @@ rkwatch()
        register rk11, unit;
        register struct rk_softc *sc;
 
        register rk11, unit;
        register struct rk_softc *sc;
 
-       timeout(rkwatch, (caddr_t)0, HZ);
+       timeout(rkwatch, (caddr_t)0, hz);
        for (rk11 = 0; rk11 < NHK; rk11++) {
                um = rkminfo[rk11];
                if (um == 0 || um->um_alive == 0)
        for (rk11 = 0; rk11 < NHK; rk11++) {
                um = rkminfo[rk11];
                if (um == 0 || um->um_alive == 0)
index 87629a9..9f69a66 100644 (file)
@@ -1,4 +1,4 @@
-/*     uba.c   4.16    %G%     */
+/*     uba.c   4.17    %G%     */
 
 #define        DELAY(N)        { register int d; d = N; while (--d > 0); }
 
 
 #define        DELAY(N)        { register int d; d = N; while (--d > 0); }
 
@@ -349,7 +349,7 @@ unhang()
                if (up->uba_sr == 0)
                        return;
                uh->uh_hangcnt++;
                if (up->uba_sr == 0)
                        return;
                uh->uh_hangcnt++;
-               if (uh->uh_hangcnt > 5*HZ) {
+               if (uh->uh_hangcnt > 5*hz) {
                        uh->uh_hangcnt = 0;
                        printf("HANG ");
                        ubareset(uban);
                        uh->uh_hangcnt = 0;
                        printf("HANG ");
                        ubareset(uban);
index 0fa50d8..38548bd 100644 (file)
@@ -1,4 +1,4 @@
-/*     up.c    4.25    81/02/26        */
+/*     up.c    4.26    81/02/27        */
 
 #include "up.h"
 #if NSC > 0
 
 #include "up.h"
 #if NSC > 0
@@ -141,7 +141,7 @@ upattach(ui)
 #endif
 
        if (upwstart == 0) {
 #endif
 
        if (upwstart == 0) {
-               timeout(upwatch, (caddr_t)0, HZ);
+               timeout(upwatch, (caddr_t)0, hz);
                upwstart++;
        }
        if (ui->ui_dk >= 0)
                upwstart++;
        }
        if (ui->ui_dk >= 0)
@@ -772,7 +772,7 @@ upwatch()
        register sc21, unit;
        register struct up_softc *sc;
 
        register sc21, unit;
        register struct up_softc *sc;
 
-       timeout(upwatch, (caddr_t)0, HZ);
+       timeout(upwatch, (caddr_t)0, hz);
        for (sc21 = 0; sc21 < NSC; sc21++) {
                um = upminfo[sc21];
                if (um == 0 || um->um_alive == 0)
        for (sc21 = 0; sc21 < NSC; sc21++) {
                um = upminfo[sc21];
                if (um == 0 || um->um_alive == 0)
index 9f8bbc7..729a3d4 100644 (file)
@@ -1,4 +1,4 @@
-/*     va.c    4.5     %G%     */
+/*     va.c    4.6     %G%     */
 
 #include "va.h"
 #if NVA > 0
 
 #include "va.h"
 #if NVA > 0
@@ -237,7 +237,7 @@ vacmd(vcmd)
 vatimo()
 {
        if (va11.va_open)
 vatimo()
 {
        if (va11.va_open)
-               timeout(vatimo, (caddr_t)0, HZ/10);
+               timeout(vatimo, (caddr_t)0, hz/10);
        vaintr(0);
 }
 
        vaintr(0);
 }
 
index 4e94eb1..304d536 100644 (file)
@@ -1,4 +1,4 @@
-/*     vp.c    4.5     %G%     */
+/*     vp.c    4.6     %G%     */
 
 #include "vp.h"
 #if NVP > 0
 
 #include "vp.h"
 #if NVP > 0
@@ -210,7 +210,7 @@ vptimo()
 {
 
        if (vp11.vp_state&VISOPEN)
 {
 
        if (vp11.vp_state&VISOPEN)
-               timeout(vptimo, (caddr_t)0, HZ/10);
+               timeout(vptimo, (caddr_t)0, hz/10);
        vpintr(0);
 }
 
        vpintr(0);
 }