Skip to content

Commit d4bea54

Browse files
committed
ice/ptp: Remove convert_art_to_tsc()
The core code now provides a mechanism to convert the ART base clock to the corresponding TSC value without requiring an architecture specific function. Replace the direct conversion by filling in the required data. No functional change intended. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Lakshmi Sowjanya D <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b3266ed commit d4bea54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/intel/ice/ice_ptp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,8 @@ ice_ptp_get_syncdevicetime(ktime_t *device,
20912091
hh_ts_lo = rd32(hw, GLHH_ART_TIME_L);
20922092
hh_ts_hi = rd32(hw, GLHH_ART_TIME_H);
20932093
hh_ts = ((u64)hh_ts_hi << 32) | hh_ts_lo;
2094-
*system = convert_art_ns_to_tsc(hh_ts);
2094+
system->cycles = hh_ts;
2095+
system->cs_id = CSID_X86_ART;
20952096
/* Read Device source clock time */
20962097
hh_ts_lo = rd32(hw, GLTSYN_HHTIME_L(tmr_idx));
20972098
hh_ts_hi = rd32(hw, GLTSYN_HHTIME_H(tmr_idx));

0 commit comments

Comments
 (0)