diff options
author | Amol Lad <amol@verismonetworks.com> | 2007-05-23 14:41:37 -0700 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-05-24 09:11:00 -0500 |
commit | 730a646ddfea239aa9f6b732d5c10118f6801bc1 (patch) | |
tree | b2f0c3895f5dc2fc4c5f8f4be3ee60b54bb947de /drivers/scsi/NCR5380.c | |
parent | 355dfa1bc8026d185678fed4e409719a595b2d39 (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>
Diffstat (limited to 'drivers/scsi/NCR5380.c')
-rw-r--r-- | drivers/scsi/NCR5380.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c index bb3cb336054..18359f6372f 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(); } |