This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / sbus / char / bbc_envctrl.c
index 37189ef..f028b15 100644 (file)
@@ -7,7 +7,6 @@
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
-#include <linux/delay.h>
 #include <asm/oplib.h>
 #include <asm/ebus.h>
 #define __KERNEL_SYSCALLS__
@@ -623,7 +622,9 @@ void bbc_envctrl_cleanup(void)
                        read_unlock(&tasklist_lock);
                        if (!found)
                                break;
-                       msleep(1000);
+                       current->state = TASK_INTERRUPTIBLE;
+                       schedule_timeout(HZ);
+                       current->state = TASK_RUNNING;
                }
                kenvctrld_task = NULL;
        }