aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMathias Nyman <[email protected]>2021-01-29 15:00:29 +0200
committerGreg Kroah-Hartman <[email protected]>2021-01-29 14:16:50 +0100
commit0353810a047ef0101af01665f60597d7f5cc6b02 (patch)
tree57dfb5e32ef43466986f38c12ed6598a13c5a0fa /tools/perf/scripts/python/bin
parent55f6153d8cc8eff0852d108f80087fdf41dc2169 (diff)
xhci: avoid DMA double fetch when reading event trb type.
Instead of re-reading, masking and endianness correcting the same trb several times to get the trb type from an event, just do it once and store it in a local variable. Also pass the trb_type directly to the vendor specific event handler, avoiding one more similar read. In addition to the security benefit this also cleans up the code and helps readability. 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/bin')
0 files changed, 0 insertions, 0 deletions