summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_timeout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_timeout.c')
-rw-r--r--sys/kern/kern_timeout.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c
index d72c284..cb67a90 100644
--- a/sys/kern/kern_timeout.c
+++ b/sys/kern/kern_timeout.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
- * $Id: kern_clock.c,v 1.6 1994/09/18 20:39:46 wollman Exp $
+ * $Id: kern_clock.c,v 1.7 1994/09/25 19:33:34 phk Exp $
*/
/* Portions of this software are covered by the following: */
@@ -467,15 +467,10 @@ hardclock(frame)
long ltemp;
if (timedelta == 0) {
- time_update = tick;
+ time_update = tick;
} else {
- if (timedelta < 0) {
- time_update = tick - tickdelta;
- timedelta += tickdelta;
- } else {
- time_update = tick + tickdelta;
- timedelta -= tickdelta;
- }
+ time_update = tick + tickdelta;
+ timedelta -= tickdelta;
}
BUMPTIME(&mono_time, time_update);
OpenPOWER on IntegriCloud