i2c/i2c-algo-ite: remove
Subsystems (2)
PATCH 1/2 i2c/i2c-algo-ite: remove
Any comments would be appreciated.
Description: Removes unused iic_sleep().
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/i2c/algos/i2c-algo-ite.c +0 -8
@@ -107,14 +107,6 @@ static int wait_for_bb(struct i2c_algo_ireturn (timeout<=0 ); } -/* -* Puts this process to sleep for a period equal to timeout -*/ -static inline void iic_sleep (unsigned long timeout) -{ -schedule_timeout ( timeout *HZ ); -} -/* After we issue a transaction on the IIC bus, this function * is called. It puts this process to sleep until we get an interrupt from * from the controller telling us that the transaction we requested in complete.
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 1/2 ieee1394/nodemgr: replace
Any comments would be appreciated.
Description: Uses msleep_interruptible() in place of schedule_timeout() to guarantee the task delays as expected.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/ieee1394/nodemgr.c +2 -3
@@ -70,8 +70,7 @@ static int nodemgr_bus_read(struct csr12if (!ret)break ; -set_current_state (TASK_INTERRUPTIBLE ); -if (schedule_timeout (HZ /3 )) +if (msleep_interruptible (334 ))return -EINTR ; }
@@ -1496,7 +1495,7 @@ static int nodemgr_host_thread(void *__h* to make sure things settle down. */ for (i =0 ; i <4 ; i++) {set_current_state (TASK_INTERRUPTIBLE ); -if (schedule_timeout (HZ /16 )) { +if (msleep_interruptible (63 )) {up (&nodemgr_serialize); goto caught_signal; }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors