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

[SCSI] NCR5380: Replace yield() with a better alternative

Replaced yield() with cond_resched()
Signed-off-by: NAmol Lad <amol@verismonetworks.com>
Acked-by: NAlan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 355dfa1b
......@@ -347,7 +347,7 @@ static int NCR5380_poll_politely(struct Scsi_Host *instance, int reg, int bit, i
if((r & bit) == val)
return 0;
if(!in_interrupt())
yield();
cond_resched();
else
cpu_relax();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册