Skip to contentSkip to conversation

i2c/i2c-algo-ite: remove

PATCH New Nishanth Aravamudan 1 participant 2 messages Sep 16, 2004

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

PATCH 1/2 i2c/i2c-algo-ite: remove

Any comments would be appreciated.

Description: Removes unused iic_sleep().

drivers/i2c/algos/i2c-algo-ite.c +0 -8
@@ -107,14 +107,6 @@ static int wait_for_bb(struct i2c_algo_i
 	return(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

#1 lore raw

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.

drivers/ieee1394/nodemgr.c +2 -3
@@ -70,8 +70,7 @@ static int nodemgr_bus_read(struct csr12
 		if (!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