summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorAmol Lad <amol@verismonetworks.com>2007-05-23 14:41:37 -0700
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-05-24 09:11:00 -0500
commit730a646ddfea239aa9f6b732d5c10118f6801bc1 (patch)
treeb2f0c3895f5dc2fc4c5f8f4be3ee60b54bb947de /drivers/scsi
parent355dfa1bc8026d185678fed4e409719a595b2d39 (diff)
downloadlinux-730a646ddfea239aa9f6b732d5c10118f6801bc1.tar.bz2
[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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/NCR5380.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c
index bb3cb3360541..18359f6372f7 100644
--- a/drivers/scsi/NCR5380.c
+++ b/drivers/scsi/NCR5380.c
@@ -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();
}