diff options
author | phk <phk@FreeBSD.org> | 1995-12-17 21:23:44 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-12-17 21:23:44 +0000 |
commit | 02cbd66c6d015a152ab4b0c15cb19a4d854dc78f (patch) | |
tree | d9e9aadac9903141119e844926290aa59d3064c2 /sys/kern/kern_tc.c | |
parent | b3abae23ca40c1ec028b9355289030d7071a4102 (diff) | |
download | FreeBSD-src-02cbd66c6d015a152ab4b0c15cb19a4d854dc78f.zip FreeBSD-src-02cbd66c6d015a152ab4b0c15cb19a4d854dc78f.tar.gz |
Staticize.
Unstaticize a function in scsi/scsi_base that was used, with an undocumented
option.
My last count on the LINT kernel shows:
Total symbols: 3647
unref symbols: 463
undef symbols: 4
1 ref symbols: 1751
2 ref symbols: 485
Approaching the pain threshold now.
Diffstat (limited to 'sys/kern/kern_tc.c')
-rw-r--r-- | sys/kern/kern_tc.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c index a662efc..3a92899 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: kern_clock.c,v 1.22 1995/12/06 13:27:37 phk Exp $ + * $Id: kern_clock.c,v 1.23 1995/12/07 12:46:37 davidg Exp $ */ /* Portions of this software are covered by the following: */ @@ -83,13 +83,14 @@ static void initclocks __P((void *dummy)); SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL) -/* Does anybody else really care about these? */ -struct callout *callfree, *callout, calltodo; +/* Does anybody else really care about these? (yes, machdep.c) */ +static struct callout calltodo; +struct callout *callfree, *callout; /* Some of these don't belong here, but it's easiest to concentrate them. */ -long cp_time[CPUSTATES]; +static long cp_time[CPUSTATES]; long dk_seek[DK_NDRIVE]; -long dk_time[DK_NDRIVE]; +static long dk_time[DK_NDRIVE]; long dk_wds[DK_NDRIVE]; long dk_wpms[DK_NDRIVE]; long dk_xfer[DK_NDRIVE]; @@ -151,7 +152,7 @@ int profhz; int profprocs; int ticks; static int psdiv, pscnt; /* prof => stat divider */ -int psratio; /* ratio: prof / stat */ +static int psratio; /* ratio: prof / stat */ volatile struct timeval time; volatile struct timeval mono_time; @@ -221,10 +222,10 @@ long time_esterror = MAXPHASE; /* estimated error (us) */ * and to increase the time_maxerror as the time since last update * increases. */ -long time_phase = 0; /* phase offset (scaled us) */ +static long time_phase = 0; /* phase offset (scaled us) */ long time_freq = 0; /* frequency offset (scaled ppm) */ -long time_adj = 0; /* tick adjust (scaled 1 / hz) */ -long time_reftime = 0; /* time at last adjustment (s) */ +static long time_adj = 0; /* tick adjust (scaled 1 / hz) */ +static long time_reftime = 0; /* time at last adjustment (s) */ #ifdef PPS_SYNC /* |