]> err.no Git - linux-2.6/commitdiff
[SCSI] NCR5380: Replace yield() with a better alternative
authorAmol Lad <amol@verismonetworks.com>
Wed, 23 May 2007 21:41:37 +0000 (14:41 -0700)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Thu, 24 May 2007 14:11:00 +0000 (09:11 -0500)
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>
drivers/scsi/NCR5380.c

index bb3cb33605417aa3f4b23dd4dc6216b744ebc2ad..18359f6372f7eb17278bc7085077b7b82151b4bf 100644 (file)
@@ -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();
        }