Remove the old-style disk instrumentation code.
This commit is contained in:
parent
c92399979d
commit
eeaf8d15ef
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rz.c,v 1.16 1996/06/16 16:57:31 mhitch Exp $ */
|
||||
/* $NetBSD: rz.c,v 1.17 1996/07/12 21:55:48 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -52,7 +52,6 @@
|
|||
#include <sys/errno.h>
|
||||
#include <sys/fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/dkstat.h> /* XXX */
|
||||
#include <sys/disklabel.h>
|
||||
#include <sys/disk.h>
|
||||
#include <sys/malloc.h>
|
||||
|
@ -158,7 +157,6 @@ struct rz_softc {
|
|||
#define sc_copenpart sc_dkdev.dk_copenmask /* XXX compat */
|
||||
#define sc_bshift sc_dkdev.dk_blkshift /* XXX compat */
|
||||
char sc_xname[8]; /* XXX external name */
|
||||
u_int sc_wpms; /* average xfer rate in 16bit wds/sec */
|
||||
struct rzstats sc_stats; /* statisic counts */
|
||||
struct buf sc_tab; /* queue of pending operations */
|
||||
struct buf sc_buf; /* buf for doing I/O */
|
||||
|
@ -432,9 +430,6 @@ rzprobe(xxxsd)
|
|||
}
|
||||
}
|
||||
|
||||
/* XXX Support old-style instrumentation for now. */
|
||||
sc->sc_wpms = 32 * (60 * DEV_BSIZE / 2);
|
||||
|
||||
/* Attach the disk. */
|
||||
disk_attach(&sc->sc_dkdev);
|
||||
|
||||
|
@ -663,14 +658,6 @@ rzstart(unit)
|
|||
unit, bp->b_bcount);
|
||||
#endif
|
||||
sc->sc_stats.rztransfers++;
|
||||
|
||||
/* XXX Support old-style instrumentation for now. */
|
||||
if ((n = sc->sc_sd->sd_dk) >= 0) {
|
||||
dk_busy |= 1 << n;
|
||||
++dk_seek[n];
|
||||
++dk_xfer[n];
|
||||
dk_wds[n] += bp->b_bcount >> 6;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -701,10 +688,6 @@ rzdone(unit, error, resid, status)
|
|||
return;
|
||||
}
|
||||
|
||||
/* XXX Support old-style instrumentation for now. */
|
||||
if (sd->sd_dk >= 0)
|
||||
dk_busy &= ~(1 << sd->sd_dk);
|
||||
|
||||
disk_unbusy(&sc->sc_dkdev, (bp->b_bcount - resid));
|
||||
|
||||
if (sc->sc_flags & RZF_SENSEINPROGRESS) {
|
||||
|
@ -937,10 +920,6 @@ rzopen(dev, flags, mode, p)
|
|||
}
|
||||
sc->sc_openpart |= mask;
|
||||
|
||||
/* XXX Support old-style instrumentation for now. */
|
||||
if (sc->sc_sd->sd_dk >= 0)
|
||||
dk_wpms[sc->sc_sd->sd_dk] = sc->sc_wpms;
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue