Switch from timeout_add with tvtohz to just timeout_add_tv. Now this change
authorclaudio <claudio@openbsd.org>
Mon, 17 Dec 2018 09:17:30 +0000 (09:17 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 17 Dec 2018 09:17:30 +0000 (09:17 +0000)
commit008971d816dc54ec2a3b8125006029314c3bdf53
tree7af410bb1806da15590fefab9885dc77ceb3bec8
parent64e125d07ca43d2a155fbcc72bbe639a501c367e
Switch from timeout_add with tvtohz to just timeout_add_tv. Now this change
will reduce the sleep time by one tick which doesn't matter in the common
case. The code never passes a true 0 timeval to timeout_add_tv so the code
will always sleep for at least 1 tick which is good enough.
OK kn@, florian@, visa@, cheloha@
sys/netinet/ip_carp.c