diff options
author | Jonathan Lemon <[email protected]> | 2022-05-13 15:52:31 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-05-16 13:07:46 -0700 |
commit | da2172a9bfec858ceeb0271b9d444378490398c8 (patch) | |
tree | 418bb6e59adf98dc47abb9b67452e2167cb5cb43 /tools/perf/scripts/python | |
parent | 4d42d54a7d6aa6d29221d3fd4f2ae9503e94f011 (diff) |
ptp: ocp: have adjtime handle negative delta_ns correctly
delta_ns is a s64, but it was being passed ptp_ocp_adjtime_coarse
as an u64. Also, it turns out that timespec64_add_ns() only handles
positive values, so perform the math with set_normalized_timespec().
Fixes: 90f8f4c0e3ce ("ptp: ocp: Add ptp_ocp_adjtime_coarse for large adjustments")
Suggested-by: Vadim Fedorenko <[email protected]>
Signed-off-by: Jonathan Lemon <[email protected]>
Acked-by: Vadim Fedorenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions