diff options
author | Amol Lad <amol@verismonetworks.com> | 2007-04-26 03:35:13 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-05-08 12:16:44 -0400 |
commit | e1fa0ceaf366ba8042a388d02ce841b36d063fe2 (patch) | |
tree | ed0aca66b385f0fe9a1b87a4f649f5680f54d15d /drivers | |
parent | 84a3c97b93ec5b4509637801a703693bb710cd4c (diff) |
[SCSI] megaraid: replace yield() with cond_resched()
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/megaraid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c index 65bc130430e2..3cce75d70263 100644 --- a/drivers/scsi/megaraid.c +++ b/drivers/scsi/megaraid.c | |||
@@ -1754,7 +1754,8 @@ __mega_busywait_mbox (adapter_t *adapter) | |||
1754 | for (counter = 0; counter < 10000; counter++) { | 1754 | for (counter = 0; counter < 10000; counter++) { |
1755 | if (!mbox->m_in.busy) | 1755 | if (!mbox->m_in.busy) |
1756 | return 0; | 1756 | return 0; |
1757 | udelay(100); yield(); | 1757 | udelay(100); |
1758 | cond_resched(); | ||
1758 | } | 1759 | } |
1759 | return -1; /* give up after 1 second */ | 1760 | return -1; /* give up after 1 second */ |
1760 | } | 1761 | } |