diff options
author | mp <mp@FreeBSD.org> | 2002-06-22 16:30:18 +0000 |
---|---|---|
committer | mp <mp@FreeBSD.org> | 2002-06-22 16:30:18 +0000 |
commit | c7f81d7ebd6e555da235e4e186cf73f5530f2b10 (patch) | |
tree | 5a5fe477c63bab367ac5db983bda7de8ba59308c /sys/isa | |
parent | a286d0d17227f9bc96ce23aacddae9bc9f266d20 (diff) | |
download | FreeBSD-src-c7f81d7ebd6e555da235e4e186cf73f5530f2b10.zip FreeBSD-src-c7f81d7ebd6e555da235e4e186cf73f5530f2b10.tar.gz |
Clock frequencies reported by sysctl should be unsigned values. Discovered
when machdep.tsc_freq returned a negative number on a 2.2GHz Xeon.
Submitted by: Brian Harrison <bharrison@ironport.com>
Reviewed by: phk
MFC after: 1 week
Diffstat (limited to 'sys/isa')
-rw-r--r-- | sys/isa/atrtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c index 29c8958..52e1932 100644 --- a/sys/isa/atrtc.c +++ b/sys/isa/atrtc.c @@ -1203,7 +1203,7 @@ sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS) } SYSCTL_PROC(_machdep, OID_AUTO, i8254_freq, CTLTYPE_INT | CTLFLAG_RW, - 0, sizeof(u_int), sysctl_machdep_i8254_freq, "I", ""); + 0, sizeof(u_int), sysctl_machdep_i8254_freq, "IU", ""); static int sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS) @@ -1223,7 +1223,7 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS) } SYSCTL_PROC(_machdep, OID_AUTO, tsc_freq, CTLTYPE_INT | CTLFLAG_RW, - 0, sizeof(u_int), sysctl_machdep_tsc_freq, "I", ""); + 0, sizeof(u_int), sysctl_machdep_tsc_freq, "IU", ""); static unsigned i8254_get_timecount(struct timecounter *tc) |