diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2018-03-30 22:41:49 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2018-05-26 01:29:49 +0300 |
commit | e5b1db0186bfb3bede41e412b27c9bcf2b336622 (patch) | |
tree | a8108847dd2b5f06782536e6dd8fc2c9715d3a1b /drivers/pci/probe.c | |
parent | 4695ca9d17a2f47e0be3011ef25a4d77b973b547 (diff) | |
download | linux-e5b1db0186bfb3bede41e412b27c9bcf2b336622.tar.xz |
PCI: Remove unused pcie_get_minimum_link()
In some cases pcie_get_minimum_link() returned misleading information
because it found the slowest link and the narrowest link without
considering the total bandwidth of the link.
For example, consider a path with these two links:
- 16.0 GT/s x1 link (16.0 * 10^9 * 128 / 130) * 1 / 8 = 1969 MB/s
- 2.5 GT/s x16 link ( 2.5 * 10^9 * 8 / 10) * 16 / 8 = 4000 MB/s
The available bandwidth of the path is limited by the 16 GT/s link to about
1969 MB/s, but pcie_get_minimum_link() returned 2.5 GT/s x1, which
corresponds to only 250 MB/s.
Callers should use pcie_print_link_status() instead, or
pcie_bandwidth_available() if they need more detailed information.
Remove pcie_get_minimum_link() since there are no callers left.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/probe.c')
0 files changed, 0 insertions, 0 deletions