diff options
author | Amol Lad <amol@verismonetworks.com> | 2007-05-23 23:41:37 +0200 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-05-24 16:11:00 +0200 |
commit | 730a646ddfea239aa9f6b732d5c10118f6801bc1 (patch) | |
tree | b2f0c3895f5dc2fc4c5f8f4be3ee60b54bb947de /drivers/scsi/NCR5380.c | |
parent | [SCSI] scsi_error: send the sense buffer down without copying (diff) | |
download | linux-730a646ddfea239aa9f6b732d5c10118f6801bc1.tar.xz linux-730a646ddfea239aa9f6b732d5c10118f6801bc1.zip |
[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 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(); } |