diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2019-08-03 22:53:46 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2019-08-03 22:53:46 +0000 |
commit | 95dd2f61defc6ca4978e02548654ad944cbba94f (patch) | |
tree | 9a2ae78fddf463f17a27f7c14196a4e107d64471 /sys | |
parent | 07ed317b944f6e8cac9d2cb8bc0a063e1d557502 (diff) |
R.I.P. itimerround(); ok mpi@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_time.c | 13 | ||||
-rw-r--r-- | sys/sys/time.h | 5 |
2 files changed, 3 insertions, 15 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index 7e67d81bf51..8f1197b7935 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_time.c,v 1.122 2019/08/02 02:17:35 cheloha Exp $ */ +/* $OpenBSD: kern_time.c,v 1.123 2019/08/03 22:53:45 cheloha Exp $ */ /* $NetBSD: kern_time.c,v 1.20 1996/02/18 11:57:06 fvdl Exp $ */ /* @@ -659,17 +659,6 @@ itimerfix(struct timeval *tv) } /* - * Nonzero timer interval smaller than the resolution of the - * system clock are rounded up. - */ -void -itimerround(struct timeval *tv) -{ - if (tv->tv_sec == 0 && tv->tv_usec != 0 && tv->tv_usec < tick) - tv->tv_usec = tick; -} - -/* * Decrement an interval timer by the given number of nanoseconds. * If the timer expires and it is periodic then reload it. When reloading * the timer we subtract any overrun from the next period so that the timer diff --git a/sys/sys/time.h b/sys/sys/time.h index 4e2dc145531..7e421478958 100644 --- a/sys/sys/time.h +++ b/sys/sys/time.h @@ -1,4 +1,4 @@ -/* $OpenBSD: time.h,v 1.45 2019/08/02 03:33:15 deraadt Exp $ */ +/* $OpenBSD: time.h,v 1.46 2019/08/03 22:53:45 cheloha Exp $ */ /* $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $ */ /* @@ -298,8 +298,7 @@ struct proc; int clock_gettime(struct proc *, clockid_t, struct timespec *); int itimerfix(struct timeval *); -int itimerdecr(struct itimerspec *itp, long nsec); -void itimerround(struct timeval *); +int itimerdecr(struct itimerspec *, long); int settime(const struct timespec *); int ratecheck(struct timeval *, const struct timeval *); int ppsratecheck(struct timeval *, int *, int); |