aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2008-06-19 23:05:12 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-06-25 18:55:11 -0400
commit66618bad123494beb30c0d590460e972e5b0977e (patch)
tree4750c192e5f004cc97dd8e031484eda976fcddcb /drivers/pci
parent820943b6fc4781621dee52ba026106758a727dd3 (diff)
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 <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/pciehp_hpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c
index 36ea9499e385..5ef4baecac79 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)
259 } 259 }
260 } 260 }
261 while (timeout > 1000) { 261 while (timeout > 1000) {
262 msleep(100); 262 msleep(10);
263 timeout -= 100; 263 timeout -= 10;
264 if (!pciehp_readw(ctrl, SLOTSTATUS, &slot_status)) { 264 if (!pciehp_readw(ctrl, SLOTSTATUS, &slot_status)) {
265 if (slot_status & CMD_COMPLETED) { 265 if (slot_status & CMD_COMPLETED) {
266 pciehp_writew(ctrl, SLOTSTATUS, CMD_COMPLETED); 266 pciehp_writew(ctrl, SLOTSTATUS, CMD_COMPLETED);