提交 e1fa0cea 编写于 作者: A Amol Lad 提交者: James Bottomley

[SCSI] megaraid: replace yield() with cond_resched()

For this driver cond_resched() seems to be a better alternative
Signed-off-by: NAmol Lad <amol@verismonetworks.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 84a3c97b
......@@ -1754,7 +1754,8 @@ __mega_busywait_mbox (adapter_t *adapter)
for (counter = 0; counter < 10000; counter++) {
if (!mbox->m_in.busy)
return 0;
udelay(100); yield();
udelay(100);
cond_resched();
}
return -1; /* give up after 1 second */
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册