summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorSagi Maimon <maimon.sagi@gmail.com>2025-04-15 08:31:31 +0300
committerJakub Kicinski <kuba@kernel.org>2025-04-17 04:23:57 +0300
commit2a5970d5aaff8f3e33ce3bfaa403ae88c40de40d (patch)
treeda32830a220d2d3388e1fc53744bff6cfb79e28a /tools/perf/scripts/python/gecko.py
parent7e49e6448cb8dfa7334dadd190a7072706dc67a5 (diff)
downloadlinux-2a5970d5aaff8f3e33ce3bfaa403ae88c40de40d.tar.xz
ptp: ocp: fix start time alignment in ptp_ocp_signal_set
In ptp_ocp_signal_set, the start time for periodic signals is not aligned to the next period boundary. The current code rounds up the start time and divides by the period but fails to multiply back by the period, causing misaligned signal starts. Fix this by multiplying the rounded-up value by the period to ensure the start time is the closest next period. Fixes: 4bd46bb037f8e ("ptp: ocp: Use DIV64_U64_ROUND_UP for rounding.") Signed-off-by: Sagi Maimon <maimon.sagi@gmail.com> Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Link: https://patch.msgid.link/20250415053131.129413-1-maimon.sagi@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions