summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2020-03-03 05:25:03 +0300
committerDavid S. Miller <davem@davemloft.net>2020-03-06 04:36:24 +0300
commitceb2f00707f97f8f881d6f253e7123bf5b17d308 (patch)
treedfbc307a114a0f95eb0a2707a12da9c730426257 /tools/perf/scripts/python/exported-sql-viewer.py
parentdbce64cbee6b983890f17b91984dfdf7bd458e19 (diff)
downloadlinux-ceb2f00707f97f8f881d6f253e7123bf5b17d308.tar.xz
ice: Use pci_get_dsn()
Replace the open-coded implementation for reading the PCIe DSN with pci_get_dsn(). The pci_get_dsn() function will perform two pci_read_config_dword calls to read the lower and upper config dwords. It bitwise ORs them into a u64 value. Instead of using put_unaligned_le32 to convert the value to LE32 format, just use the %016llX printf specifier. This will print the u64 correct, putting the most significant byte of the value first. Since pci_get_dsn() correctly orders the two dwords into a u64, this should produce equivalent results in less code. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions