diff options
author | 2013-01-04 19:10:42 +0000 | |
---|---|---|
committer | 2013-02-08 13:54:31 +1000 | |
commit | dd66cc2e1f4765d0e6f39eb1e7d8d64d3f1cc522 (patch) | |
tree | 4fb97623aae202968b86abb4c84b1dca5b63214f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/pci: Set all supported speeds in speed cap mask for pre-3.0 devices (diff) | |
download | linux-dev-dd66cc2e1f4765d0e6f39eb1e7d8d64d3f1cc522.tar.xz linux-dev-dd66cc2e1f4765d0e6f39eb1e7d8d64d3f1cc522.zip |
drm/pci: Use PCI Express Capability accessors
Use PCI Express Capability access functions to simplify this code a bit.
For non-PCIe devices or pre-PCIe 3.0 devices that don't implement the Link
Capabilities 2 register, pcie_capability_read_dword() reads a zero.
Since we're only testing whether the bits we care about are set, there's no
need to mask out the other bits we *don't* care about.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions