Move the old-style disk instrumentation "structures" to a central location
(sys/kern/subr_disk.c) and note that they should/will be deperecated.
This commit is contained in:
parent
4162cf6459
commit
17eb6e2bc1
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: autoconf.c,v 1.12 1995/12/02 18:11:21 thorpej Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.13 1995/12/28 19:16:45 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -73,7 +73,6 @@
|
|||
* the machine.
|
||||
*/
|
||||
int cold; /* if 1, still working on cold-start */
|
||||
int dkn; /* number of iostat dk numbers assigned so far */
|
||||
int cpuspeed = 0; /* relative cpu speed -- can be patched */
|
||||
struct isr isrqueue[NISR];
|
||||
struct hp_hw sc_table[MAXCTLRS];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: autoconf.c,v 1.13 1994/11/04 00:36:47 mycroft Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.14 1995/12/28 19:16:48 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
|
@ -63,7 +63,6 @@
|
|||
* the configuration process, and are used in initializing
|
||||
* the machine.
|
||||
*/
|
||||
int dkn; /* number of iostat dk numbers assigned so far */
|
||||
extern int cold; /* cold start flag initialized in locore.s */
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: autoconf.c,v 1.1.1.1 1995/07/25 23:11:55 chuck Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.2 1995/12/28 19:16:51 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -71,7 +71,6 @@
|
|||
* the machine.
|
||||
*/
|
||||
int cold; /* if 1, still working on cold-start */
|
||||
int dkn; /* number of iostat dk numbers assigned so far */
|
||||
int cpuspeed = MHZ_16; /* relative cpu speed */
|
||||
struct isr isrqueue[NISR];
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: autoconf.c,v 1.15 1995/09/26 20:16:23 phil Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.16 1995/12/28 19:16:55 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
|
@ -62,7 +62,6 @@
|
|||
* the machine.
|
||||
*/
|
||||
|
||||
int dkn; /* number of iostat dk numbers assigned so far */
|
||||
extern int cold; /* cold start flag initialized in locore.s */
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: autoconf.c,v 1.13 1995/09/13 19:36:01 jonathan Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.14 1995/12/28 19:16:58 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -70,7 +70,6 @@
|
|||
* the machine.
|
||||
*/
|
||||
int cold = 1; /* if 1, still working on cold-start */
|
||||
int dkn; /* number of iostat dk numbers assigned so far */
|
||||
int cpuspeed = 30; /* approx # instr per usec. */
|
||||
extern int pmax_boardtype;
|
||||
extern tc_option_t tc_slot_info[TC_MAX_LOGICAL_SLOTS];
|
||||
|
|
|
@ -144,8 +144,6 @@ configure_scsi()
|
|||
register struct pmax_scsi_device *dp;
|
||||
register struct pmax_driver *drp;
|
||||
|
||||
extern int dkn; /* number of iostat dk numbers assigned */
|
||||
|
||||
/* probe and initialize SCSI buses */
|
||||
for (cp = &pmax_scsi_table[0]; drp = cp->pmax_driver; cp++) {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: autoconf.c,v 1.39 1995/10/18 21:54:34 pk Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.40 1995/12/28 19:17:02 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -74,7 +74,6 @@
|
|||
* the machine.
|
||||
*/
|
||||
int cold; /* if 1, still working on cold-start */
|
||||
int dkn; /* number of iostat dk numbers assigned so far */
|
||||
int fbnode; /* node ID of ROM's console frame buffer */
|
||||
int optionsnode; /* node ID of ROM's options */
|
||||
int cpumod; /* CPU model,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uba.c,v 1.11 1995/12/13 19:02:57 ragge Exp $ */
|
||||
/* $NetBSD: uba.c,v 1.12 1995/12/28 19:17:07 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986 The Regents of the University of California.
|
||||
|
@ -66,7 +66,6 @@
|
|||
#include "ubareg.h"
|
||||
#include "ubavar.h"
|
||||
|
||||
int dkn;
|
||||
extern int cold;
|
||||
|
||||
volatile int rbr,rcvec;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uba.c,v 1.11 1995/12/13 19:02:57 ragge Exp $ */
|
||||
/* $NetBSD: uba.c,v 1.12 1995/12/28 19:17:07 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986 The Regents of the University of California.
|
||||
|
@ -66,7 +66,6 @@
|
|||
#include "ubareg.h"
|
||||
#include "ubavar.h"
|
||||
|
||||
int dkn;
|
||||
extern int cold;
|
||||
|
||||
volatile int rbr,rcvec;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_clock.c,v 1.22 1995/03/03 01:24:03 cgd Exp $ */
|
||||
/* $NetBSD: kern_clock.c,v 1.23 1995/12/28 19:16:41 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1991, 1993
|
||||
|
@ -418,8 +418,6 @@ stopprofclock(p)
|
|||
}
|
||||
}
|
||||
|
||||
int dk_ndrive = DK_NDRIVE;
|
||||
|
||||
/*
|
||||
* Statistics clock. Grab profile sample, and if divider reaches 0,
|
||||
* do process and kernel statistics.
|
||||
|
@ -491,6 +489,8 @@ statclock(frame)
|
|||
pscnt = psdiv;
|
||||
|
||||
/*
|
||||
* XXX Support old-style instrumentation for now.
|
||||
*
|
||||
* We maintain statistics shown by user-level statistics
|
||||
* programs: the amount of time in each cpu state, and
|
||||
* the amount of time each of DK_NDRIVE ``drives'' is busy.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: subr_disk.c,v 1.13 1995/03/29 20:57:35 mycroft Exp $ */
|
||||
/* $NetBSD: subr_disk.c,v 1.14 1995/12/28 19:16:39 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988, 1993
|
||||
|
@ -45,6 +45,20 @@
|
|||
#include <sys/buf.h>
|
||||
#include <sys/disklabel.h>
|
||||
#include <sys/syslog.h>
|
||||
#include <sys/dkstat.h> /* XXX */
|
||||
|
||||
/*
|
||||
* Old-style disk instrumentation structures. These will go away
|
||||
* someday.
|
||||
*/
|
||||
long dk_seek[DK_NDRIVE];
|
||||
long dk_time[DK_NDRIVE];
|
||||
long dk_wds[DK_NDRIVE];
|
||||
long dk_wpms[DK_NDRIVE];
|
||||
long dk_xfer[DK_NDRIVE];
|
||||
int dk_busy;
|
||||
int dk_ndrive = DK_NDRIVE;
|
||||
int dkn; /* number of slots filled so far */
|
||||
|
||||
/*
|
||||
* Seek sort for disks. We depend on the driver which calls us using b_resid
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dkstat.h,v 1.7 1995/03/26 20:24:01 jtc Exp $ */
|
||||
/* $NetBSD: dkstat.h,v 1.8 1995/12/28 19:16:31 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -50,14 +50,16 @@
|
|||
#define DK_NDRIVE 8
|
||||
#ifdef _KERNEL
|
||||
long cp_time[CPUSTATES];
|
||||
long dk_seek[DK_NDRIVE];
|
||||
long dk_time[DK_NDRIVE];
|
||||
long dk_wds[DK_NDRIVE];
|
||||
long dk_wpms[DK_NDRIVE];
|
||||
long dk_xfer[DK_NDRIVE];
|
||||
|
||||
int dk_busy;
|
||||
int dk_ndrive;
|
||||
extern long dk_seek[];
|
||||
extern long dk_time[];
|
||||
extern long dk_wds[];
|
||||
extern long dk_wpms[];
|
||||
extern long dk_xfer[];
|
||||
|
||||
extern int dk_busy;
|
||||
extern int dk_ndrive;
|
||||
extern int dkn;
|
||||
|
||||
long tk_cancc;
|
||||
long tk_nin;
|
||||
|
|
Loading…
Reference in New Issue