pciehp: change command polling frequency
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Fri, 20 Jun 2008 03:05:12 +0000 (12:05 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 25 Jun 2008 22:55:11 +0000 (15:55 -0700)
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>
drivers/pci/hotplug/pciehp_hpc.c

index 36ea949..5ef4bae 100644 (file)
@@ -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);