Skip to content

Commit 4852744

Browse files
committed
ice/ptp: Remove convert_art_to_tsc()
JIRA: https://issues.redhat.com/browse/RHEL-61639 commit d4bea54 Author: Thomas Gleixner <tglx@linutronix.de> Date: Mon May 13 16:08:08 2024 +0530 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 <tglx@linutronix.de> Signed-off-by: Lakshmi Sowjanya D <lakshmi.sowjanya.d@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20240513103813.5666-8-lakshmi.sowjanya.d@intel.com Signed-off-by: Ivan Vecera <ivecera@redhat.com>
1 parent d12e214 commit 4852744

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
@@ -2218,7 +2218,8 @@ ice_ptp_get_syncdevicetime(ktime_t *device,
22182218
hh_ts_lo = rd32(hw, GLHH_ART_TIME_L);
22192219
hh_ts_hi = rd32(hw, GLHH_ART_TIME_H);
22202220
hh_ts = ((u64)hh_ts_hi << 32) | hh_ts_lo;
2221-
*system = convert_art_ns_to_tsc(hh_ts);
2221+
system->cycles = hh_ts;
2222+
system->cs_id = CSID_X86_ART;
22222223
/* Read Device source clock time */
22232224
hh_ts_lo = rd32(hw, GLTSYN_HHTIME_L(tmr_idx));
22242225
hh_ts_hi = rd32(hw, GLTSYN_HHTIME_H(tmr_idx));

0 commit comments

Comments
 (0)