aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2023-11-24 10:59:24 +0200
committerBjorn Helgaas <[email protected]>2023-12-01 16:50:59 -0600
commit0d481ff35c9a85d775e5544bb2e331e7d5eb6c3c (patch)
treeead64576c33798fbc24ba26042844d42412febbd /tools/perf/util/scripting-engines
parent420ac76610d76b09aebc0bfc722c7af9c6daf36a (diff)
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/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines')
0 files changed, 0 insertions, 0 deletions