summaryrefslogtreecommitdiffstats
path: root/sys/x86
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2011-01-19 23:00:25 +0000
committermdf <mdf@FreeBSD.org>2011-01-19 23:00:25 +0000
commit6b5f615b7cc6c75f8c09d1c988fd88ffea2ac4e1 (patch)
tree018d5bd56f39f833a692fc5bf63ac3aa9faf2d3b /sys/x86
parentb9c3284acce37464aa09aa152e7b09ac335fb83e (diff)
downloadFreeBSD-src-6b5f615b7cc6c75f8c09d1c988fd88ffea2ac4e1.zip
FreeBSD-src-6b5f615b7cc6c75f8c09d1c988fd88ffea2ac4e1.tar.gz
Introduce signed and unsigned version of CTLTYPE_QUAD, renaming
existing uses. Rename sysctl_handle_quad() to sysctl_handle_64().
Diffstat (limited to 'sys/x86')
-rw-r--r--sys/x86/x86/tsc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/x86/x86/tsc.c b/sys/x86/x86/tsc.c
index e39c4af..4591abb 100644
--- a/sys/x86/x86/tsc.c
+++ b/sys/x86/x86/tsc.c
@@ -263,7 +263,7 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
if (tsc_timecounter.tc_frequency == 0)
return (EOPNOTSUPP);
freq = tsc_freq;
- error = sysctl_handle_quad(oidp, &freq, 0, req);
+ error = sysctl_handle_64(oidp, &freq, 0, req);
if (error == 0 && req->newptr != NULL) {
tsc_freq = freq;
tsc_timecounter.tc_frequency = tsc_freq;
@@ -271,7 +271,7 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
return (error);
}
-SYSCTL_PROC(_machdep, OID_AUTO, tsc_freq, CTLTYPE_QUAD | CTLFLAG_RW,
+SYSCTL_PROC(_machdep, OID_AUTO, tsc_freq, CTLTYPE_U64 | CTLFLAG_RW,
0, 0, sysctl_machdep_tsc_freq, "QU", "");
static unsigned
OpenPOWER on IntegriCloud