From a3c81680963c14fd84d3ddadaa3dfbb913f89023 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Thu, 17 Feb 2000 23:33:57 +0000 Subject: [PATCH] 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 --- sys/dev/amr/amr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c index 91ff84ca579..14dfec49e00 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? */