Skip to content

Commit fcb0591

Browse files
committed
igc: Remove convert_art_ns_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 bd48b50 commit fcb0591

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/net/ethernet/intel/igc/igc_ptp.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,11 @@ static bool igc_is_crosststamp_supported(struct igc_adapter *adapter)
938938
static struct system_counterval_t igc_device_tstamp_to_system(u64 tstamp)
939939
{
940940
#if IS_ENABLED(CONFIG_X86_TSC) && !defined(CONFIG_UML)
941-
return convert_art_ns_to_tsc(tstamp);
941+
return (struct system_counterval_t) {
942+
.cs_id = CSID_X86_ART,
943+
.cycles = tstamp,
944+
.use_nsecs = true,
945+
};
942946
#else
943947
return (struct system_counterval_t) { };
944948
#endif

0 commit comments

Comments
 (0)