Messages in this thread Patch in this message | | | Subject | Re: [PATCH] PCI and I2C fixes for 2.6.8 | Date | Mon, 23 Aug 2004 11:34:43 -0700 | From | Greg KH <> |
| |
ChangeSet 1.1807.54.1, 2004/08/02 16:05:14-07:00, nacc@us.ibm.com
[PATCH] I2C: i2c-keywest: replace schedule_timeout() with msleep()
Uses msleep() instead of schedule_timeout() to guarantee the task delays at least the desired time amount.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/i2c/busses/i2c-keywest.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-)
diff -Nru a/drivers/i2c/busses/i2c-keywest.c b/drivers/i2c/busses/i2c-keywest.c --- a/drivers/i2c/busses/i2c-keywest.c 2004-08-23 11:07:42 -07:00 +++ b/drivers/i2c/busses/i2c-keywest.c 2004-08-23 11:07:42 -07:00 @@ -662,8 +662,7 @@ 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); spin_lock_irq(&iface->lock); } #endif /* POLLED_MODE */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |