Skip to contentSkip to conversation

i2c-keywest: replace schedule_timeout()

PATCH New Nishanth Aravamudan 1 participant 1 message Jul 22, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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().

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