summaryrefslogtreecommitdiffstats
path: root/sys/dev/amr
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2000-02-17 23:33:57 +0000
committermsmith <msmith@FreeBSD.org>2000-02-17 23:33:57 +0000
commit9f549054bdff6380f15c524c6ffceb688a5f3f4f (patch)
treeb2b132f6c09ec21d2111af8fb9526112730bdc0c /sys/dev/amr
parent89f6fa0f491db3d48d448e5c6a3085b813a03d24 (diff)
downloadFreeBSD-src-9f549054bdff6380f15c524c6ffceb688a5f3f4f.zip
FreeBSD-src-9f549054bdff6380f15c524c6ffceb688a5f3f4f.tar.gz
Increase the time we spend waiting for the controller to become ready to
accept a new command; in high load cases it may be too busy for the old value. This loop needs something to tie it to real time, rather than just the CPU's ability to fetch from the L1 data cache, but this hack works for now. Approved by: jkh
Diffstat (limited to 'sys/dev/amr')
-rw-r--r--sys/dev/amr/amr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c
index 91ff84c..14dfec4 100644
--- a/sys/dev/amr/amr.c
+++ b/sys/dev/amr/amr.c
@@ -1126,7 +1126,7 @@ amr_start(struct amr_command *ac)
/* spin waiting for the mailbox */
debug("wait for mailbox");
- for (i = 10000, done = 0, worked = 0; (i > 0) && !done; i--) {
+ for (i = 100000, done = 0, worked = 0; (i > 0) && !done; i--) {
s = splbio();
/* is the mailbox free? */
OpenPOWER on IntegriCloud