summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-06-07 18:30:12 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-06-07 18:30:12 +0000
commit44109982d5215272ca87689c289e8c48bfbccdba (patch)
treee8b02244eec11a39fd22b5207f5c8a1e9d7e2a90 /sys/net
parentf38fce057ec85941e798311e4e14df6bf4b4df95 (diff)
There is absolutely no need to protect a reference to mono_time.tv_sec with splclock.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/route.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 0f856d53483..1a56c56c865 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.30 2002/05/31 05:00:26 itojun Exp $ */
+/* $OpenBSD: route.c,v 1.31 2002/06/07 18:30:11 art Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -986,11 +986,8 @@ rt_timer_add(rt, func, queue)
{
struct rttimer *r;
long current_time;
- int s;
- s = splclock();
current_time = mono_time.tv_sec;
- splx(s);
/*
* If there's already a timer with this action, destroy it before
@@ -1045,9 +1042,7 @@ rt_timer_timer(arg)
long current_time;
int s;
- s = splclock();
current_time = mono_time.tv_sec;
- splx(s);
s = splsoftnet();
for (rtq = LIST_FIRST(&rttimer_queue_head); rtq != NULL;