ChangeSet 1.1790.2.13, 2004/08/02 16:28:17-07:00, nacc@us.ibm.com [PATCH] PCI: replace schedule_timeout() with msleep() Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time. Signed-off-by: Nishanth Aravamudan Signed-off-by: Greg Kroah-Hartman drivers/pci/pci.c | 5 +---- 1 files changed, 1 insertion(+), 4 deletions(-) diff -Nru a/drivers/pci/pci.c b/drivers/pci/pci.c --- a/drivers/pci/pci.c 2004-08-23 11:06:51 -07:00 +++ b/drivers/pci/pci.c 2004-08-23 11:06:51 -07:00 @@ -291,10 +291,7 @@ /* Mandatory power management transition delays */ /* see PCI PM 1.1 5.6.1 table 18 */ if(state == 3 || dev->current_state == 3) - { - set_current_state(TASK_UNINTERRUPTIBLE); - schedule_timeout(HZ/100); - } + msleep(10); else if(state == 2 || dev->current_state == 2) udelay(200); dev->current_state = state;