aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorRicardo Ribalda <[email protected]>2024-03-23 10:48:02 +0000
committerLaurent Pinchart <[email protected]>2024-06-17 00:58:45 +0300
commita0df8d9450dff25652b628a07f9240ea66228eba (patch)
treec7ea3b73d2a23a703feadfe19d6dfde92ecee7d6 /tools/perf/scripts/python/parallel-perf.py
parent91798162245991e26949ef62851719bb2177a9c2 (diff)
media: uvcvideo: Support timestamp lists of any size
The tail of the list lives at the position before the head. This is mathematically noted as: ``` (head-1) mod size. ``` Unfortunately C, does not have a modulus operator, but a remainder operator (%). The reminder operation has a different result than the modulus if (head -1) is a negative number and size is not a power of two. Adding size to (head-1) allows the code to run with any value of size. This does not change the current behaviour of the driver, as the size is always a power of two, but avoid tedious debugging if we ever change its size. Reviewed-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Ricardo Ribalda <[email protected]> Reviewed-by: Tomasz Figa <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Laurent Pinchart <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions