diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-02-03 17:47:28 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-02-03 17:47:28 +0000 |
commit | 0a13b4121a45b492c104e476ae5bac68dea0cce4 (patch) | |
tree | 3cdbeb23e083cfef71941335f5f1e419754b7895 /sys/dev/ic | |
parent | 0034fbc103532ddb8c21f1407ac024afec24e73d (diff) |
add 5sec to the xs->timeout to overcompensate for possible delays in quartz_done(); marco@ ok
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/ami.c | 5 |
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)); } |