Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/kern Pull up rev. 1.52:
details: https://anonhg.NetBSD.org/src/rev/8e1d927864e0
branches: netbsd-1-5
changeset: 488498:8e1d927864e0
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Jul 13 20:18:12 2000 +0000
description:
Pull up rev. 1.52:
Add a comment about the hzto() return value.
diffstat:
sys/kern/kern_time.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r 9189af686cb6 -r 8e1d927864e0 sys/kern/kern_time.c
--- a/sys/kern/kern_time.c Thu Jul 13 20:16:28 2000 +0000
+++ b/sys/kern/kern_time.c Thu Jul 13 20:18:12 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_time.c,v 1.47 2000/05/31 05:02:34 thorpej Exp $ */
+/* $NetBSD: kern_time.c,v 1.47.2.1 2000/07/13 20:18:12 thorpej Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -528,6 +528,10 @@
if (which == ITIMER_REAL) {
callout_stop(&p->p_realit_ch);
if (timerisset(&aitv.it_value)) {
+ /*
+ * Don't need to check hzto() return value, here.
+ * callout_reset() does it for us.
+ */
timeradd(&aitv.it_value, &time, &aitv.it_value);
callout_reset(&p->p_realit_ch, hzto(&aitv.it_value),
realitexpire, p);
@@ -565,6 +569,10 @@
timeradd(&p->p_realtimer.it_value,
&p->p_realtimer.it_interval, &p->p_realtimer.it_value);
if (timercmp(&p->p_realtimer.it_value, &time, >)) {
+ /*
+ * Don't need to check hzto() return value, here.
+ * callout_reset() does it for us.
+ */
callout_reset(&p->p_realit_ch,
hzto(&p->p_realtimer.it_value), realitexpire, p);
splx(s);
Home |
Main Index |
Thread Index |
Old Index