summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2005-02-03 17:47:27 +0000
committermickey <mickey@openbsd.org>2005-02-03 17:47:27 +0000
commit107e093d29f4461b44473d4ff6eb6a881a4c3c7c (patch)
tree74ec845541a22e39e138458f32b3ab445732a776
parentbuild libarch for arm. (diff)
downloadwireguard-openbsd-107e093d29f4461b44473d4ff6eb6a881a4c3c7c.tar.xz
wireguard-openbsd-107e093d29f4461b44473d4ff6eb6a881a4c3c7c.zip
add 5sec to the xs->timeout to overcompensate for possible delays in quartz_done(); marco@ ok
-rw-r--r--sys/dev/ic/ami.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index ee9ddbe04c3..8cbf5b663c2 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.27 2005/01/08 18:14:54 mickey Exp $ */
+/* $OpenBSD: ami.c,v 1.28 2005/02/03 17:47:27 mickey Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -857,7 +857,8 @@ ami_start(ccb, wait)
#endif
if (xs) {
struct timeval tv;
- tv.tv_sec = xs->timeout / 1000;
+ /* add 5sec for whacky done() loops */
+ tv.tv_sec = 5 + xs->timeout / 1000;
tv.tv_usec = 1000 * (xs->timeout % 1000);
timeout_add(&xs->stimeout, tvtohz(&tv));
}