summaryrefslogtreecommitdiff
path: root/sys/kern/kern_time.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2006-06-15 15:17:53 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2006-06-15 15:17:53 +0000
commit8c12441c5237a84fc3d755ce8ce28064def46a4a (patch)
treef20a08b3c3c542cc8f32bf3e231813a3bd64f149 /sys/kern/kern_time.c
parent543b45bdf6e4f7adb40e89108fd688f491a0128a (diff)
Make sys_adjfreq() compile on archs that use timecounters
(ie sgi). Diff and request to commit from otto@
Diffstat (limited to 'sys/kern/kern_time.c')
-rw-r--r--sys/kern/kern_time.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c
index efe209890c9..e2df8798927 100644
--- a/sys/kern/kern_time.c
+++ b/sys/kern/kern_time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_time.c,v 1.56 2006/06/14 19:52:07 otto Exp $ */
+/* $OpenBSD: kern_time.c,v 1.57 2006/06/15 15:17:52 jsg Exp $ */
/* $NetBSD: kern_time.c,v 1.20 1996/02/18 11:57:06 fvdl Exp $ */
/*
@@ -362,6 +362,7 @@ int64_t ntp_tick_acc;
int
sys_adjfreq(struct proc *p, void *v, register_t *retval)
{
+#ifndef __HAVE_TIMECOUNTER
struct sys_adjfreq_args /* {
syscallarg(const int64_t *) freq;
syscallarg(int64_t *) oldfreq;
@@ -385,6 +386,7 @@ sys_adjfreq(struct proc *p, void *v, register_t *retval)
ntp_tick_permanent = f / hz;
splx(s);
}
+#endif
return (0);
}