[PATCH] use new msleep() in ADT746x driver

From: Benjamin Herrenschmidt
Date: Fri May 28 2004 - 04:35:50 EST


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

Signed-off-by: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Colin Leroy <colin@xxxxxxxxxx>

--- drivers/macintosh/therm_adt746x.c.orig 2004-05-27 08:55:17.000000000 +0200
+++ drivers/macintosh/therm_adt746x.c 2004-05-28 08:59:27.589388936 +0200
@@ -247,8 +247,7 @@

while(monitor_running)
{
- set_task_state(current, TASK_UNINTERRUPTIBLE);
- schedule_timeout(2*HZ);
+ msleep(2000);

/* Check status */
/* local : chip */
--
Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/