net/ns83820: replace
Subsystems (3)
PATCH 27/38 net/ns83820: replace
Any comments would be appreciated.
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays as expected.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/net/ns83820.c +1 -2
@@ -1960,8 +1960,7 @@ static int __devinit ns83820_init_one(stif (reset_phy) {printk (KERN_INFO "%s: resetting phy\n" , ndev->name);writel (dev->CFG_cache |CFG_PHY_RST , dev->base +CFG ); -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout ((HZ +99 )/100 ); +msleep (10 );writel (dev->CFG_cache, dev->base +CFG ); }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 27/38 net/orinoco_tmd: replace
Any comments would be appreciated.
Description: Use ssleep() instead of schedule_timeout() to guarantee the task delays as expected.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/net/wireless/orinoco_tmd.c +2 -2
@@ -72,6 +72,7 @@#include <linux/list.h> #include <linux/pci.h> #include <linux/fcntl.h> +#include <linux/delay.h> #include <pcmcia/cisreg.h>
@@ -218,8 +219,7 @@ static int __init orinoco_tmd_init(void) static void __exit orinoco_tmd_exit(void) {pci_unregister_driver (&orinoco_tmd_driver); - current->state =TASK_UNINTERRUPTIBLE ; -schedule_timeout (HZ ); +ssleep (1 ); }module_init (orinoco_tmd_init);
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors