This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / pci / hotplug / cpqphp_ctrl.c
index 10a5a76..7073a4a 100644 (file)
@@ -69,8 +69,10 @@ static void long_delay(int delay)
        init_waitqueue_head(&delay_wait);
 
        add_wait_queue(&delay_wait, &wait);
-       msleep_interruptible(jiffies_to_msecs(delay));
+       set_current_state(TASK_INTERRUPTIBLE);
+       schedule_timeout(delay);
        remove_wait_queue(&delay_wait, &wait);
+       set_current_state(TASK_RUNNING);
        
        up(&delay_sem);
 }