diff options
author | Jacob Keller <[email protected]> | 2022-10-28 04:04:16 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-10-31 11:14:16 +0000 |
commit | d8aad3f3694f1170fb4ea8030e3d8a27324e81d2 (patch) | |
tree | 21f059c1f89a50eff4f552c50565d1ac7291e667 /net/unix/sysctl_net_unix.c | |
parent | 6ed795965ede203d762f59b791e3490eb6f74b13 (diff) |
ptp: mlx5: convert to .adjfine and adjust_by_scaled_ppm
The mlx5 implementation of .adjfreq is implemented in terms of a
straight forward "base * ppb / 1 billion" calculation.
Convert this to the .adjfine interface and use adjust_by_scaled_ppm for the
calculation of the new mult value.
Note that the mlx5_ptp_adjfreq_real_time function expects input in terms of
ppb, so use the scaled_ppm_to_ppb to convert before passing to this
function.
Signed-off-by: Jacob Keller <[email protected]>
Tested-by: Shirly Ohnona <[email protected]>
Acked-by: Richard Cochran <[email protected]>
Cc: Gal Pressman <[email protected]>
Cc: Saeed Mahameed <[email protected]>
Cc: Leon Romanovsky <[email protected]>
Cc: Aya Levin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions