This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / sbus / char / envctrl.c
index cd6e2d3..70ae314 100644 (file)
@@ -1181,7 +1181,8 @@ static void __exit envctrl_cleanup(void)
                        if (!found)
                                break;
 
-                       msleep(1000);
+                       current->state = TASK_INTERRUPTIBLE;
+                       schedule_timeout(HZ);
                }
                kenvctrld_task = NULL;
        }