summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus/pcrtc.c
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2003-01-30 13:23:18 +0000
committernyan <nyan@FreeBSD.org>2003-01-30 13:23:18 +0000
commit9d632b189a16ca469e6617de428b27e755d0eb3a (patch)
treed0f98006b7081788030eee2ba4392bb2f71151f9 /sys/pc98/cbus/pcrtc.c
parent2cccc29f2e23d86b04fe71657d28054d04daaf57 (diff)
downloadFreeBSD-src-9d632b189a16ca469e6617de428b27e755d0eb3a.zip
FreeBSD-src-9d632b189a16ca469e6617de428b27e755d0eb3a.tar.gz
MFi386: revision 1.192.
Diffstat (limited to 'sys/pc98/cbus/pcrtc.c')
-rw-r--r--sys/pc98/cbus/pcrtc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/pc98/cbus/pcrtc.c b/sys/pc98/cbus/pcrtc.c
index d8833dc..557afe8 100644
--- a/sys/pc98/cbus/pcrtc.c
+++ b/sys/pc98/cbus/pcrtc.c
@@ -845,7 +845,7 @@ calibrate_clocks(void)
if (bootverbose) {
if (tsc_present)
- printf("TSC clock: %u Hz, ", tsc_freq);
+ printf("TSC clock: %ju Hz, ", (intmax_t)tsc_freq);
printf("i8254 clock: %u Hz\n", tot_count);
}
return (tot_count);
@@ -1000,7 +1000,8 @@ startrtclock()
tsc_freq = rdtsc() - old_tsc;
#ifdef CLK_USE_TSC_CALIBRATION
if (bootverbose)
- printf("TSC clock: %u Hz (Method B)\n", tsc_freq);
+ printf("TSC clock: %ju Hz (Method B)\n",
+ (intmax_t)tsc_freq);
#endif
}
@@ -1556,7 +1557,7 @@ static int
sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
{
int error;
- u_int freq;
+ uint64_t freq;
if (tsc_timecounter.tc_frequency == 0)
return (EOPNOTSUPP);
@@ -1569,7 +1570,7 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
return (error);
}
-SYSCTL_PROC(_machdep, OID_AUTO, tsc_freq, CTLTYPE_INT | CTLFLAG_RW,
+SYSCTL_PROC(_machdep, OID_AUTO, tsc_freq, CTLTYPE_QUAD | CTLFLAG_RW,
0, sizeof(u_int), sysctl_machdep_tsc_freq, "IU", "");
static unsigned
OpenPOWER on IntegriCloud