From 44109982d5215272ca87689c289e8c48bfbccdba Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Fri, 7 Jun 2002 18:30:12 +0000 Subject: There is absolutely no need to protect a reference to mono_time.tv_sec with splclock. --- sys/net/route.c | 7 +------ 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3