summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormp <mp@FreeBSD.org>2002-06-22 16:30:18 +0000
committermp <mp@FreeBSD.org>2002-06-22 16:30:18 +0000
commitc7f81d7ebd6e555da235e4e186cf73f5530f2b10 (patch)
tree5a5fe477c63bab367ac5db983bda7de8ba59308c /sys
parenta286d0d17227f9bc96ce23aacddae9bc9f266d20 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/amd64/amd64/tsc.c4
-rw-r--r--sys/amd64/isa/clock.c4
-rw-r--r--sys/i386/i386/tsc.c4
-rw-r--r--sys/i386/isa/clock.c4
-rw-r--r--sys/isa/atrtc.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c
index 29c8958..52e1932 100644
--- a/sys/amd64/amd64/tsc.c
+++ b/sys/amd64/amd64/tsc.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)
diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c
index 29c8958..52e1932 100644
--- a/sys/amd64/isa/clock.c
+++ b/sys/amd64/isa/clock.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)
diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c
index 29c8958..52e1932 100644
--- a/sys/i386/i386/tsc.c
+++ b/sys/i386/i386/tsc.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)
diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c
index 29c8958..52e1932 100644
--- a/sys/i386/isa/clock.c
+++ b/sys/i386/isa/clock.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)
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)
OpenPOWER on IntegriCloud