Commit ce9240e9 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Greg Kroah-Hartman

[PATCH] PCI: Remove setting TASK_RUNNING after schedule_timeout in /drivers/pci/

parent f047f29b
......@@ -766,7 +766,6 @@ static inline int wait_for_ctrl_irq (struct controller *ctrl)
set_current_state(TASK_INTERRUPTIBLE);
/* Sleep for up to 1 second to wait for the LED to change. */
schedule_timeout(1*HZ);
set_current_state(TASK_RUNNING);
remove_wait_queue(&ctrl->queue, &wait);
if (signal_pending(current))
retval = -EINTR;
......
......@@ -296,7 +296,6 @@ pci_pool_alloc (struct pci_pool *pool, int mem_flags, dma_addr_t *handle)
schedule_timeout (POOL_TIMEOUT_JIFFIES);
current->state = TASK_RUNNING;
remove_wait_queue (&pool->waitq, &wait);
goto restart;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment