mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 05:33:09 +00:00
[SCSI] NCR5380: Replace yield() with a better alternative
Replaced yield() with cond_resched() Signed-off-by: Amol Lad <amol@verismonetworks.com> Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
355dfa1bc8
commit
730a646ddf
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user