Re: [PATCH] PCI: print out exact timeout in pciehp for wait_cmd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 22, 2014 at 7:35 PM, Bjorn Helgaas <bhelgaas@xxxxxxxxxx> wrote:
>
>     [bhelgaas: changelog, use current jiffies instead of adding timeout]

> diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c
> index 9e0f4aec5f0c..3673a913379f 100644
> --- a/drivers/pci/hotplug/pciehp_hpc.c
> +++ b/drivers/pci/hotplug/pciehp_hpc.c
> @@ -173,7 +173,7 @@ static void pcie_wait_cmd(struct controller *ctrl)
>         if (!rc)
>                 ctrl_info(ctrl, "Timeout on hotplug command %#06x (issued %u msec ago)\n",
>                           ctrl->slot_ctrl,
> -                         jiffies_to_msecs(now - ctrl->cmd_started));
> +                         jiffies_to_msecs(jiffies - ctrl->cmd_started));
>  }
>
>  /**

Yeah, that is more simple.

Thanks

Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux