From: Amol Lad Date: Wed, 23 May 2007 21:41:37 +0000 (-0700) Subject: [SCSI] NCR5380: Replace yield() with a better alternative X-Git-Tag: v2.6.23-rc1~1053^2~157 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=730a646ddfea239aa9f6b732d5c10118f6801bc1;p=linux-2.6 [SCSI] NCR5380: Replace yield() with a better alternative Replaced yield() with cond_resched() Signed-off-by: Amol Lad Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c index bb3cb33605..18359f6372 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(); }