diff options
author | Arnd Bergmann <[email protected]> | 2017-11-07 11:39:56 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2017-11-07 15:34:08 +0100 |
commit | 15081e85cca45e495144eb0c108926e629fde486 (patch) | |
tree | e9917576ce63d0207da7d19b7892cd421e03a90e /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 12f28144cf2cf69e1520e238eee7c384719ca44b (diff) |
usbip: fix off-by-one frame number calculation
vgadget_get_frame returns a frame number from 0 to 2046, which
may require an expensive division operation to wrap at one lower
than the usual number.
I can't see any reason for this, and all other drivers wrap at
a power-of-two number. My best explanation is that it was a simple
typo, so I'm changing the % modulo operator into a cheaper bitmask
that the other drivers use, to make it wrap after 0x7ff rather than
before it.
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Krzysztof Opasiak <[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