* [patch 11/30] drivers/scsi/NCR5380.c: Replacing yield() with a better alternative
@ 2007-02-16 9:46 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2007-02-16 9:46 UTC (permalink / raw)
To: James.Bottomley; +Cc: linux-scsi, akpm, amol, alan
From: Amol Lad <amol@verismonetworks.com>
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>
---
drivers/scsi/NCR5380.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/scsi/NCR5380.c~drivers-scsi-ncr5380c-replacing-yield-with-a drivers/scsi/NCR5380.c
--- a/drivers/scsi/NCR5380.c~drivers-scsi-ncr5380c-replacing-yield-with-a
+++ a/drivers/scsi/NCR5380.c
@@ -347,7 +347,7 @@ static int NCR5380_poll_politely(struct
if((r & bit) == val)
return 0;
if(!in_interrupt())
- yield();
+ cond_resched();
else
cpu_relax();
}
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-16 9:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-16 9:46 [patch 11/30] drivers/scsi/NCR5380.c: Replacing yield() with a better alternative akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.