summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_tc.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-08-18 22:36:09 +0000
committerwollman <wollman@FreeBSD.org>1994-08-18 22:36:09 +0000
commitf9fc827448679cf1d41e56512c34521bf06ce37a (patch)
tree6b83fdf6eb5926c2f3d175a83d24bf5a2611a012 /sys/kern/kern_tc.c
parent44fc281f480837836035856eb0af25443f0d2146 (diff)
downloadFreeBSD-src-f9fc827448679cf1d41e56512c34521bf06ce37a.zip
FreeBSD-src-f9fc827448679cf1d41e56512c34521bf06ce37a.tar.gz
Fix up some sloppy coding practices:
- Delete redundant declarations. - Add -Wredundant-declarations to Makefile.i386 so they don't come back. - Delete sloppy COMMON-style declarations of uninitialized data in header files. - Add a few prototypes. - Clean up warnings resulting from the above. NB: ioconf.c will still generate a redundant-declaration warning, which is unavoidable unless somebody volunteers to make `config' smarter.
Diffstat (limited to 'sys/kern/kern_tc.c')
-rw-r--r--sys/kern/kern_tc.c28
1 files changed, 23 insertions, 5 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index c963fda..5b365f5 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
- * $Id$
+ * $Id: kern_clock.c,v 1.3 1994/08/02 07:41:54 davidg Exp $
*/
#include <sys/param.h>
@@ -53,6 +53,26 @@
#include <sys/gmon.h>
#endif
+/* Does anybody else really care about these? */
+struct callout *callfree, *callout, calltodo;
+int ncallout;
+
+/* Some of these don't belong here, but it's easiest to concentrate them. */
+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 = DK_NDRIVE;
+
+long tk_cancc;
+long tk_nin;
+long tk_nout;
+long tk_rawcc;
+
/*
* Clock handling routines.
*
@@ -257,7 +277,7 @@ softclock()
*/
void
timeout(ftn, arg, ticks)
- void (*ftn) __P((void *));
+ timeout_t ftn;
void *arg;
register int ticks;
{
@@ -302,7 +322,7 @@ timeout(ftn, arg, ticks)
void
untimeout(ftn, arg)
- void (*ftn) __P((void *));
+ timeout_t ftn;
void *arg;
{
register struct callout *p, *t;
@@ -400,8 +420,6 @@ stopprofclock(p)
}
}
-int dk_ndrive = DK_NDRIVE;
-
/*
* Statistics clock. Grab profile sample, and if divider reaches 0,
* do process and kernel statistics.
OpenPOWER on IntegriCloud