i2c-keywest: replace schedule_timeout()
Subsystems (2)
PATCH 1/1 i2c-keywest: replace schedule_timeout()
I would appreciate any comments from the janitors list.
Thanks,
Nish
Applys-to: 2.6.7
Description: Remove iic_ite_sleep() and replace invocations with msleep().
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/i2c/busses/i2c-keywest.c +1 -2
@@ -662,8 +662,7 @@ dispose_iface(struct device *dev)spin_lock_irq (&iface->lock);while (iface->state != state_idle) {spin_unlock_irq (&iface->lock); -set_task_state (current,TASK_UNINTERRUPTIBLE ); -schedule_timeout (HZ /10 ); +msleep (100 );/* sleep 100ms */ spin_lock_irq (&iface->lock); }#endif /* POLLED_MODE */
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors