Skip to contentSkip to conversation

use new msleep() in ADT746x driver

PATCH New Benjamin Herrenschmidt 1 participant 1 message May 28, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 use new msleep() in ADT746x driver

This patch replaces schedule_timeout() with the new msleep().

macintosh/therm_adt746x.c renamed from macintosh/therm_adt746x.c.orig +1 -2
@@ -247,8 +247,7 @@
 
 	while(monitor_running)
 	{
-		set_task_state(current, TASK_UNINTERRUPTIBLE);
-		schedule_timeout(2*HZ);
+		msleep(2000);
 
 		/* Check status */
 		/* local   : chip */
Signature · 1 line
Benjamin Herrenschmidt <[email protected]>