]> git.hungrycats.org Git - linux/commitdiff
[PATCH] use new msleep() in ADT746x driver
authorAndrew Morton <akpm@osdl.org>
Sat, 29 May 2004 03:41:36 +0000 (20:41 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 29 May 2004 03:41:36 +0000 (20:41 -0700)
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>

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

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Colin Leroy <colin@colino.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/macintosh/therm_adt746x.c

index 05bd57a293a4a5f318de3dedf0ef4b617a548fed..37f06c81db56f28151cde31c5830a0506c871332 100644 (file)
@@ -246,8 +246,7 @@ static int monitor_task(void *arg)
 
        while(monitor_running)
        {
-               set_task_state(current, TASK_UNINTERRUPTIBLE);
-               schedule_timeout(2*HZ);
+               msleep(2000);
 
                /* Check status */
                /* local   : chip */