Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1fa0cea authored by Amol Lad's avatar Amol Lad Committed by James Bottomley
Browse files

[SCSI] megaraid: replace yield() with cond_resched()



For this driver cond_resched() seems to be a better alternative

Signed-off-by: default avatarAmol Lad <amol@verismonetworks.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 84a3c97b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 */
}