cond_resched() seems to be a better alternative

Signed-off-by: Amol Lad <[EMAIL PROTECTED]>
---
diff -uprN -X linux-2.6.19-rc1-orig/Documentation/dontdiff 
linux-2.6.19-rc1-orig/drivers/net/sb1000.c linux-2.6.19-rc1/drivers/net/sb1000.c
--- linux-2.6.19-rc1-orig/drivers/net/sb1000.c  2006-10-05 14:00:48.000000000 
+0530
+++ linux-2.6.19-rc1/drivers/net/sb1000.c       2006-10-11 17:57:02.000000000 
+0530
@@ -264,7 +264,7 @@ card_wait_for_busy_clear(const int ioadd
        timeout = jiffies + TimeOutJiffies;
        while (a & 0x80 || a & 0x40) {
                /* a little sleep */
-               yield();
+               cond_resched();
 
                a = inb(ioaddr[0] + 7);
                if (time_after_eq(jiffies, timeout)) {
@@ -288,7 +288,7 @@ card_wait_for_ready(const int ioaddr[], 
        timeout = jiffies + TimeOutJiffies;
        while (a & 0x80 || !(a & 0x40)) {
                /* a little sleep */
-               yield();
+               cond_resched();
 
                a = inb(ioaddr[1] + 6);
                if (time_after_eq(jiffies, timeout)) {


-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to