diff options
author | Jacob Keller <[email protected]> | 2022-11-14 13:37:01 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-11-16 12:17:44 -0800 |
commit | d82303df06481235fe7cbaf605075e0c2c87e99b (patch) | |
tree | b5e0b633e483c3734cdb0d52395a04d590cf86b3 /include/linux/fpga/fpga-region.h | |
parent | bf36267e3ad3df80a3a18eb0422723069a434934 (diff) |
mlxsw: update adjfine to use adjust_by_scaled_ppm
The mlxsw adjfine implementation in the spectrum_ptp.c file converts
scaled_ppm into ppb before updating a cyclecounter multiplier using the
standard "base * ppb / 1billion" calculation.
This can be re-written to use adjust_by_scaled_ppm, directly using the
scaled parts per million and reducing the amount of code required to
express this calculation.
We still calculate the parts per billion for passing into
mlxsw_sp_ptp_phc_adjfreq because this function requires the input to be in
parts per billion.
Signed-off-by: Jacob Keller <[email protected]>
Cc: Amit Cohen <[email protected]>
Cc: Petr Machata <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Tested-by: Ido Schimmel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-region.h')
0 files changed, 0 insertions, 0 deletions