aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorNiklas Neronin <[email protected]>2024-02-29 16:14:31 +0200
committerGreg Kroah-Hartman <[email protected]>2024-03-02 20:25:27 +0100
commit06790c19086fe8f54afcd49184916132c7a8da4e (patch)
treeceb4bbbda8d93b4888dfd313400db4da5a84e29f /tools/perf/scripts/python/syscall-counts-by-pid.py
parentc9a63ec5d2590793d0da267e9300401c86306df8 (diff)
xhci: replace real & fake port with pointer to root hub port
Variables real & fake port do not convey their purpose, thus they are replaced with a pointer to the root hub port 'struct xhci_port *rhub_port'. 'rhub_port' contains real & fake ports in zero-based format, which happens to be more widely used inside the xHCI driver: - 'real_port' is ('rhub_port->hw_portnum' + 1) - 'fake_port' is ('rhub_port->hcd_portnum' + 1) One reason for real port being one-based, is to signal other functions in case struct 'xhci_virt_device' initialization failed, in this case the value will remain 0. This is no longer needed, instead we check whether or not 'rhub_port' is 'NULL'. Signed-off-by: Niklas Neronin <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions