]> git.hungrycats.org Git - linux/commit
[PATCH] I2C: replace schedule_timeout() with msleep_interruptible() in i2c-ibm_iic.c
authorNishanth Aravamudan <nacc@us.ibm.com>
Tue, 19 Oct 2004 08:21:15 +0000 (01:21 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 19 Oct 2004 08:21:15 +0000 (01:21 -0700)
commit2ddb7e4fbfefb49c7943057ca5ef728e6ff11fe6
tree181a003074fae6a6ed73aac61cf794197b06e331
parent663a6746f8fb3f6eea21226db61befdc2d53386a
[PATCH] I2C: replace schedule_timeout() with msleep_interruptible() in i2c-ibm_iic.c

Use msleep_interruptible() instead of schedule_timeout() to
guarantee the task delays as expected. Remove the unnecessary
set_current_state() following the if, as schedule_timeout() [and thus,
mlseep_interruptible()] is guaranteed to return in TASK_RUNNING.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/i2c/busses/i2c-ibm_iic.c