VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / drivers / sbus / char / bbc_envctrl.c
index f028b15..37189ef 100644 (file)
@@ -7,6 +7,7 @@
 #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__
@@ -622,9 +623,7 @@ void bbc_envctrl_cleanup(void)
                        read_unlock(&tasklist_lock);
                        if (!found)
                                break;
-                       current->state = TASK_INTERRUPTIBLE;
-                       schedule_timeout(HZ);
-                       current->state = TASK_RUNNING;
+                       msleep(1000);
                }
                kenvctrld_task = NULL;
        }