diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2023-11-24 11:59:24 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2023-12-02 01:50:59 +0300 |
commit | 0d481ff35c9a85d775e5544bb2e331e7d5eb6c3c (patch) | |
tree | ead64576c33798fbc24ba26042844d42412febbd /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 420ac76610d76b09aebc0bfc722c7af9c6daf36a (diff) | |
download | linux-0d481ff35c9a85d775e5544bb2e331e7d5eb6c3c.tar.xz |
x86/pci: Clean up open-coded PCIBIOS return code mangling
Per PCI Firmware spec r3.3, sec 2.5.2, 2.6.2, and 2.7, the return code for
these PCI BIOS interfaces is in 8 bits of the EAX register. Previously it
was extracted by open-coded masks and shifting.
Name the return code bits with a #define and add pcibios_get_return_code()
to extract the return code to improve code readability. In addition,
replace zero test with PCIBIOS_SUCCESSFUL.
No functional changes intended.
Link: https://lore.kernel.org/r/20231124085924.13830-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions