summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishanth Aravamudan <nacc@us.ibm.com>2004-09-22 04:20:45 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-22 04:20:45 -0700
commitb5e829113722c211e46f45fe1f13d087e206853d (patch)
treea76cb903b6f33ec5180431b18f8301bacb09e574
parent7e86d18ba72d14a184d30195d040207480c8e443 (diff)
[PATCH] macintosh/therm_windtunnel: replace schedule_timeout() with msleep_interruptible()
Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/macintosh/therm_windtunnel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c
index f4a1777c6347..7dbc5cb4d7ee 100644
--- a/drivers/macintosh/therm_windtunnel.c
+++ b/drivers/macintosh/therm_windtunnel.c
@@ -292,8 +292,7 @@ control_loop( void *dummy )
while( x.running ) {
up( &x.lock );
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout( 8*HZ );
+ msleep_interruptible(8000);
down( &x.lock );
poll_temp();