diff options
author | 2002-06-07 18:30:11 +0000 | |
---|---|---|
committer | 2002-06-07 18:30:11 +0000 | |
commit | 3508a8f98860bf55f5f6a663a831f3e2495292b7 (patch) | |
tree | 61354608a7f902ebbf2d6b1132cf4a15666b8633 | |
parent | Move all duplicated enqueueing code into one function, (diff) | |
download | wireguard-openbsd-3508a8f98860bf55f5f6a663a831f3e2495292b7.tar.xz wireguard-openbsd-3508a8f98860bf55f5f6a663a831f3e2495292b7.zip |
There is absolutely no need to protect a reference to mono_time.tv_sec with splclock.
-rw-r--r-- | sys/net/route.c | 7 |
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; |