diff options
author | nyan <nyan@FreeBSD.org> | 2003-01-30 13:23:18 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2003-01-30 13:23:18 +0000 |
commit | 9d632b189a16ca469e6617de428b27e755d0eb3a (patch) | |
tree | d0f98006b7081788030eee2ba4392bb2f71151f9 | |
parent | 2cccc29f2e23d86b04fe71657d28054d04daaf57 (diff) | |
download | FreeBSD-src-9d632b189a16ca469e6617de428b27e755d0eb3a.zip FreeBSD-src-9d632b189a16ca469e6617de428b27e755d0eb3a.tar.gz |
MFi386: revision 1.192.
-rw-r--r-- | sys/pc98/cbus/clock.c | 9 | ||||
-rw-r--r-- | sys/pc98/cbus/pcrtc.c | 9 | ||||
-rw-r--r-- | sys/pc98/pc98/clock.c | 9 |
3 files changed, 15 insertions, 12 deletions
diff --git a/sys/pc98/cbus/clock.c b/sys/pc98/cbus/clock.c index d8833dc..557afe8 100644 --- a/sys/pc98/cbus/clock.c +++ b/sys/pc98/cbus/clock.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 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 diff --git a/sys/pc98/pc98/clock.c b/sys/pc98/pc98/clock.c index d8833dc..557afe8 100644 --- a/sys/pc98/pc98/clock.c +++ b/sys/pc98/pc98/clock.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 |