summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-08-02 03:33:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-08-02 03:33:16 +0000
commit21956bf02b253c86c2602dfef9c62eac4fa0a0f8 (patch)
treef39d91fa4545095fe13526f6767abe1cd2200506 /sys
parentea5f6879636efd4687cdaebb76b2f9c14196dac0 (diff)
missing part of commit by cheloha:
per-process itimers: itimerval -> itimerspec Loongson runs at 128hz. 128 doesn't divide evenly into a million, but it does divide evenly into a billion. So if we do the per-process itimer bookkeeping with itimerspec structs we can have error-free virtual itimers on loongson just as we do on most other platforms. This change doesn't fix the virtual itimer error alpha, as 1024 does not divide evenly into a billion. But this doesn't make the situation any worse, either. ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/time.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/time.h b/sys/sys/time.h
index 924ece4f1f8..4e2dc145531 100644
--- a/sys/sys/time.h
+++ b/sys/sys/time.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.h,v 1.44 2019/07/03 22:39:33 cheloha Exp $ */
+/* $OpenBSD: time.h,v 1.45 2019/08/02 03:33:15 deraadt Exp $ */
/* $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $ */
/*
@@ -298,7 +298,7 @@ struct proc;
int clock_gettime(struct proc *, clockid_t, struct timespec *);
int itimerfix(struct timeval *);
-int itimerdecr(struct itimerval *itp, int usec);
+int itimerdecr(struct itimerspec *itp, long nsec);
void itimerround(struct timeval *);
int settime(const struct timespec *);
int ratecheck(struct timeval *, const struct timeval *);