From: Kenji Kaneshige Date: Fri, 20 Jun 2008 03:05:12 +0000 (+0900) Subject: pciehp: change command polling frequency X-Git-Tag: v2.6.27-rc1~1046^2~30 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=66618bad123494beb30c0d590460e972e5b0977e;p=linux-2.6-omap-h63xx.git pciehp: change command polling frequency Change command polling frequency to 100Hz from 10Hz in order to reduce the delay in the common case of a command completing quickly. Signed-off-by: Kenji Kaneshige Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c index 36ea9499e38..5ef4baecac7 100644 --- a/drivers/pci/hotplug/pciehp_hpc.c +++ b/drivers/pci/hotplug/pciehp_hpc.c @@ -259,8 +259,8 @@ static inline int pcie_poll_cmd(struct controller *ctrl) } } while (timeout > 1000) { - msleep(100); - timeout -= 100; + msleep(10); + timeout -= 10; if (!pciehp_readw(ctrl, SLOTSTATUS, &slot_status)) { if (slot_status & CMD_COMPLETED) { pciehp_writew(ctrl, SLOTSTATUS, CMD_COMPLETED);