[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:
Amol Lad
2007-05-23 14:41:37 -07:00
committed by James Bottomley
parent 355dfa1bc8
commit 730a646ddf

View File

@@ -347,7 +347,7 @@ static int NCR5380_poll_politely(struct Scsi_Host *instance, int reg, int bit, i
if((r & bit) == val) if((r & bit) == val)
return 0; return 0;
if(!in_interrupt()) if(!in_interrupt())
yield(); cond_resched();
else else
cpu_relax(); cpu_relax();
} }