summaryrefslogtreecommitdiff
path: root/drivers/pci/hotplug/acpi_pcihp.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2014-09-23 06:07:35 +0400
committerBjorn Helgaas <bhelgaas@google.com>2014-09-23 20:03:54 +0400
commitd433889cd5a0933fbd90f1e65bff5a8d7963cc52 (patch)
tree4cdd85dcdb95602f490c73377a2f1deea4821634 /drivers/pci/hotplug/acpi_pcihp.c
parentbceee4a97eb58bd0e80e39eff11b506ddd9e7ad3 (diff)
downloadlinux-d433889cd5a0933fbd90f1e65bff5a8d7963cc52.tar.xz
PCI: pciehp: Fix wait time in timeout message
When we warned about a timeout on a hotplug command, we previously printed the time between calls to pcie_write_cmd(), without accounting for any time spent actually waiting. Consider this sequence: pcie_write_cmd write SLTCTL cmd_started = jiffies # T1 pcie_write_cmd pcie_wait_cmd now = jiffies # T2 wait_event_timeout # we may wait here if (timeout) ctrl_info("Timeout on command issued %u msec ago", jiffies_to_msecs(now - cmd_started)) We previously printed (T2 - T1), but that doesn't include the time spent in wait_event_timeout(). Fix this by using the current jiffies value, not the one cached before calling wait_event_timeout(). [bhelgaas: changelog, use current jiffies instead of adding timeout] Fixes: 40b960831cfa ("PCI: pciehp: Compute timeout from hotplug command start time") Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/acpi_pcihp.c')
0 files changed, 0 insertions, 0 deletions