diff options
| author | Niklas Neronin <[email protected]> | 2024-02-29 16:14:32 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-03-02 20:25:27 +0100 |
| commit | 74151b5349266bd1a3a8307a05449a22bf0ba9de (patch) | |
| tree | 22e042979d032bbe39afcffc38e89705a13501ae /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 06790c19086fe8f54afcd49184916132c7a8da4e (diff) | |
xhci: save slot ID in struct 'xhci_port'
Slot ID is a index of a virtual device in struct 'xhci_hcd->devs[]'.
Previously, to get the slot ID associated with a port, we had to loop
through all devices and compare ports, which is very inefficient.
Instead, the slot ID (of the device which is directly connected to the
port), is added to the its corresponding 'xhci_port' struct. As a result,
finding the port's device is quick and easy.
Function 'xhci_find_slot_id_by_port()' is removed, as it is no longer
needed.
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