summaryrefslogtreecommitdiff
path: root/include/clocksource/hyperv_timer.h
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2022-07-22 00:30:01 +0300
committerTony Nguyen <anthony.l.nguyen@intel.com>2022-07-28 21:03:01 +0300
commitd8fae2504efee73958cbbf9c7122f13f95495222 (patch)
tree69d9b9dd32d9f6df785018b38d0bedf08913781b /include/clocksource/hyperv_timer.h
parent5a5542324a4af2e161bb8709d330fab7d895cd6e (diff)
downloadlinux-d8fae2504efee73958cbbf9c7122f13f95495222.tar.xz
igb: convert .adjfreq to .adjfine
The 82576 PTP implementation still uses .adjfreq instead of using the newer .adjfine. This implementation uses a pre-simplified calculation since the base increment value for the 82576 is just 16 * 2^19. Converting this into scaled_ppm is tricky, and makes the intent a bit less clear. Simply convert to the normal flow of multiplying the base increment value by the scaled_ppm and then dividing by 1000000ULL << 16. This can be implemented using mul_u64_u64_div_u64 which can avoid the possible overflow that might occur for large adjustments. Use of .adjfine can improve the precision of small adjustments and gets us one driver closer to removing the old implementation from the kernel entirely. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'include/clocksource/hyperv_timer.h')
0 files changed, 0 insertions, 0 deletions