aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmol Lad <amol@verismonetworks.com>2007-05-23 17:41:37 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-05-24 10:11:00 -0400
commit730a646ddfea239aa9f6b732d5c10118f6801bc1 (patch)
treeb2f0c3895f5dc2fc4c5f8f4be3ee60b54bb947de
parent355dfa1bc8026d185678fed4e409719a595b2d39 (diff)
[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>
-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
347 if((r & bit) == val) 347 if((r & bit) == val)
348 return 0; 348 return 0;
349 if(!in_interrupt()) 349 if(!in_interrupt())
350 yield(); 350 cond_resched();
351 else 351 else
352 cpu_relax(); 352 cpu_relax();
353 } 353 }