projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
355dfa1
)
[SCSI] NCR5380: Replace yield() with a better alternative
author
Amol Lad
<amol@verismonetworks.com>
Wed, 23 May 2007 21:41:37 +0000
(14:41 -0700)
committer
James 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/NCR5380.c
b/drivers/scsi/NCR5380.c
index bb3cb33605417aa3f4b23dd4dc6216b744ebc2ad..18359f6372f7eb17278bc7085077b7b82151b4bf 100644
(file)
--- 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())
-
yiel
d();
+
cond_resche
d();
else
cpu_relax();
}