net/3c505: replace schedule_timeout() with msleep()
Subsystems (3)
PATCH 1/1 net/3c505: replace schedule_timeout() with msleep()
Use msleep() instead of schedule_timeout() to guarantee the task delays as expected.
drivers/net/3c505.c +2 -4
@@ -1317,8 +1317,7 @@ static int __init elp_sense(struct net_dif (orig_HSR &DIR ) {/* If HCR.DIR is up, we pull it down. HSR.DIR should follow. */ outb (0 , dev->base_addr +PORT_CONTROL ); -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (30 *HZ /100 ); +msleep (300 );if (inb_status (addr) &DIR ) {if (elp_debug >0 )printk (notfound_msg,2 );
@@ -1327,8 +1326,7 @@ static int __init elp_sense(struct net_d }else {/* If HCR.DIR is down, we pull it up. HSR.DIR should follow. */ outb (DIR , dev->base_addr +PORT_CONTROL ); -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (30 *HZ /100 ); +msleep (300 );if (!(inb_status (addr) &DIR )) {if (elp_debug >0 )printk (notfound_msg,3 );
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 1/1 ppc/fcc_enet: replace schedule_timeout() with ssleep()
I couldn't find an appropriate entry in MAINTAINERS for this patch.
Use ssleep() instead of schedule_timeout() to guarantee the task delays as expected.
arch/ppc/8260_io/fcc_enet.c +2 -3
@@ -1305,12 +1305,11 @@ static void mii_parse_dm9161_scsr(uint mstatic void mii_dm9161_wait (uint mii_reg,struct net_device *dev) { -int timeout =HZ ; +int timeout_secs =1 ;/* Davicom takes a bit to come up after a reset, * so wait here for a bit */ -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (timeout); +ssleep (timeout_secs); }static phy_info_t phy_info_dm9161 = {
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 1/1 net/slip: replace schedule_timeout() with msleep_interruptible()
In reply to Nishanth AravamudanUse msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
drivers/net/slip.c +2 -4
@@ -1395,10 +1395,8 @@ static void __exit slip_exit(void)/* First of all: check for active disciplines and hangup them. */ do { - if (busy) { - set_current_state(TASK_INTERRUPTIBLE); - schedule_timeout(HZ / 10); - } + if (busy) + msleep_interruptible(100); busy = 0; for (i = 0; i < slip_maxdev; i++) {
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors