From: Nishanth Aravamudan Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan Signed-off-by: Andrew Morton --- 25-akpm/drivers/macintosh/therm_windtunnel.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -puN drivers/macintosh/therm_windtunnel.c~macintosh-therm_windtunnel-replace-schedule_timeout-with-msleep_interruptible drivers/macintosh/therm_windtunnel.c --- 25/drivers/macintosh/therm_windtunnel.c~macintosh-therm_windtunnel-replace-schedule_timeout-with-msleep_interruptible 2004-09-20 10:39:30.055301480 -0700 +++ 25-akpm/drivers/macintosh/therm_windtunnel.c 2004-09-20 10:39:30.059300872 -0700 @@ -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(); _