aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2022-11-09 15:09:43 -0800
committerDavid S. Miller <[email protected]>2022-11-11 10:58:39 +0000
commita29c132f92ed5af6e7116966b7e9899d4c22783c (patch)
treee172417a021d91b388a8e1a459ae2cb6b3a389d7 /tools/perf/scripts/python/event_analyzing_sample.py
parenta45392071ceeebe85622705a1d7500ed434785a7 (diff)
ptp: bnxt: convert .adjfreq to .adjfine
When the BNXT_FW_CAP_PTP_RTC flag is not set, the bnxt driver implements .adjfreq on a cyclecounter in terms of the straightforward "base * ppb / 1 billion" calculation. When BNXT_FW_CAP_PTP_RTC is set, the driver forwards the ppb value to firmware for configuration. Convert the driver to the newer .adjfine interface, updating the cyclecounter calculation to use adjust_by_scaled_ppm to perform the calculation. Use scaled_ppm_to_ppb when forwarding the correction to firmware. Signed-off-by: Jacob Keller <[email protected]> Cc: Michael Chan <[email protected]> Cc: Richard Cochran <[email protected]> Reviewed-by: Pavan Chebbi <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions