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