*Please check if the timout value is ok or it should be increased*

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/sis900.c linux-2.6.19-rc1/drivers/net/sis900.c
--- linux-2.6.19-rc1-orig/drivers/net/sis900.c  2006-10-05 14:00:48.000000000 
+0530
+++ linux-2.6.19-rc1/drivers/net/sis900.c       2006-10-11 17:57:02.000000000 
+0530
@@ -664,7 +664,7 @@ static int __init sis900_mii_probe(struc
 
        if(status & MII_STAT_LINK){
                while (poll_bit) {
-                       yield();
+                       schedule_timeout_interruptible(1);
 
                        poll_bit ^= (mdio_read(net_dev, sis_priv->cur_phy, 
MII_STATUS) & poll_bit);
                        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