![]() | ||||||||||
Messages in this thread Patch in this message |
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>
--- 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@kernel.crashing.org>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
| |||||||||
| Last update: 2005-03-22 13:03 [from the cache] ©2003-2008 | ||||||||||