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
This commit is contained in:
parent
bb328b87c1
commit
a3c8168096
@ -1126,7 +1126,7 @@ amr_start(struct amr_command *ac)
|
|||||||
|
|
||||||
/* spin waiting for the mailbox */
|
/* spin waiting for the mailbox */
|
||||||
debug("wait for 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();
|
s = splbio();
|
||||||
|
|
||||||
/* is the mailbox free? */
|
/* is the mailbox free? */
|
||||||
|
Loading…
Reference in New Issue
Block a user