projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84a3c97
)
[SCSI] megaraid: replace yield() with cond_resched()
author
Amol Lad
<amol@verismonetworks.com>
Thu, 26 Apr 2007 07:35:13 +0000
(
00:35
-0700)
committer
James Bottomley
<jejb@mulgrave.il.steeleye.com>
Tue, 8 May 2007 16:16:44 +0000
(11:16 -0500)
For this driver cond_resched() seems to be a better alternative
Signed-off-by: Amol Lad <amol@verismonetworks.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/megaraid.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/megaraid.c
b/drivers/scsi/megaraid.c
index 65bc130430e287ac919bba0c0ab7a2bc06396a95..3cce75d70263a4fd5b315e53241548f3b23a8012 100644
(file)
--- a/
drivers/scsi/megaraid.c
+++ b/
drivers/scsi/megaraid.c
@@
-1754,7
+1754,8
@@
__mega_busywait_mbox (adapter_t *adapter)
for (counter = 0; counter < 10000; counter++) {
if (!mbox->m_in.busy)
return 0;
- udelay(100); yield();
+ udelay(100);
+ cond_resched();
}
return -1; /* give up after 1 second */
}