]> git.hungrycats.org Git - linux/commitdiff
[SPARC64]: Make bbc_envctrl use msleep_interruptible().
authorNishanth Aravamudan <nacc@us.ibm.com>
Tue, 28 Sep 2004 08:03:58 +0000 (01:03 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Tue, 28 Sep 2004 08:03:58 +0000 (01:03 -0700)
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/sbus/char/bbc_envctrl.c

index 37189ef063605259c03f9a64eec227987dc32ec7..d5259f7fee6d056957a1d0bfa366f374dff28045 100644 (file)
@@ -452,7 +452,7 @@ static void fans_full_blast(void)
        }
 }
 
-#define POLL_INTERVAL  (5 * HZ)
+#define POLL_INTERVAL  (5 * 1000)
 static unsigned long last_warning_jiffies;
 static struct task_struct *kenvctrld_task;
 
@@ -468,8 +468,7 @@ static int kenvctrld(void *__unused)
                struct bbc_cpu_temperature *tp;
                struct bbc_fan_control *fp;
 
-               current->state = TASK_INTERRUPTIBLE;
-               schedule_timeout(POLL_INTERVAL);
+               msleep_interruptible(POLL_INTERVAL);
                if (signal_pending(current))
                        break;