Skip to content

Commit

Permalink
pciehp: change command polling frequency
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kenji Kaneshige authored and Jesse Barnes committed Jun 25, 2008
1 parent 820943b commit 66618ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/pci/hotplug/pciehp_hpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 66618ba

Please sign in to comment.