diff options
| author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2003-01-30 13:23:18 +0000 |
|---|---|---|
| committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2003-01-30 13:23:18 +0000 |
| commit | 57afe26bb66ec8fa16364cd2094fbb373964acae (patch) | |
| tree | d0f98006b7081788030eee2ba4392bb2f71151f9 | |
| parent | 6ec82c07acee90173351bc424a6d097373d8b134 (diff) | |
Notes
| -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 d8833dc334b3..557afe8d3c26 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 d8833dc334b3..557afe8d3c26 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 d8833dc334b3..557afe8d3c26 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 |
