Skip to content

Commit f5e1d0d

Browse files
committed
stmmac: intel: 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 fcb0591 commit f5e1d0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,11 @@ static int intel_crosststamp(ktime_t *device,
390390
*device = ns_to_ktime(ptp_time);
391391
read_unlock_irqrestore(&priv->ptp_lock, flags);
392392
get_arttime(priv->mii, intel_priv->mdio_adhoc_addr, &art_time);
393-
*system = convert_art_to_tsc(art_time);
393+
system->cycles = art_time;
394394
}
395395

396396
system->cycles *= intel_priv->crossts_adj;
397+
system->cs_id = CSID_X86_ART;
397398
priv->plat->flags &= ~STMMAC_FLAG_INT_SNAPSHOT_EN;
398399

399400
return 0;

0 commit comments

Comments
 (0)