Messages in this thread Patch in this message | | | Subject | Re: [PATCH] PCI and I2C fixes for 2.6.8 | Date | Mon, 23 Aug 2004 11:34:43 -0700 | From | Greg KH <> |
| |
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 <nacc@us.ibm.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |