]> git.hungrycats.org Git - linux/commitdiff
[SPARC]: bbc_envctrl: Replace schedule_timeout() with msleep().
authorNishanth Aravamudan <nacc@us.ibm.com>
Wed, 28 Jul 2004 01:57:10 +0000 (18:57 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Wed, 28 Jul 2004 01:57:10 +0000 (18:57 -0700)
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: David S. Miller <davem@redhat.com>
drivers/sbus/char/bbc_envctrl.c

index f028b154a95d6319d11a9f982bd93ab85eba3475..cd81ae2d5de626ff8bba297cbcc2550d491d6f76 100644 (file)
@@ -622,9 +622,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;
        }