aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2024-05-13 16:08:04 +0530
committerThomas Gleixner <tglx@linutronix.de>2024-06-03 11:18:50 +0200
commitbd48b50be50ac5678a7e26c39f6779d7fadf128b (patch)
treeb2f592e43e9c3f888dbb3815699ceabe5328624b
parentx86/tsc: Provide ART base clock information for TSC (diff)
downloadwireguard-linux-bd48b50be50ac5678a7e26c39f6779d7fadf128b.tar.xz
wireguard-linux-bd48b50be50ac5678a7e26c39f6779d7fadf128b.zip
e1000e: Replace 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-4-lakshmi.sowjanya.d@intel.com
-rw-r--r--drivers/net/ethernet/intel/e1000e/ptp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/ptp.c b/drivers/net/ethernet/intel/e1000e/ptp.c
index bbcfd529399b..89d57dd911dc 100644
--- a/drivers/net/ethernet/intel/e1000e/ptp.c
+++ b/drivers/net/ethernet/intel/e1000e/ptp.c
@@ -124,7 +124,8 @@ static int e1000e_phc_get_syncdevicetime(ktime_t *device,
sys_cycles = er32(PLTSTMPH);
sys_cycles <<= 32;
sys_cycles |= er32(PLTSTMPL);
- *system = convert_art_to_tsc(sys_cycles);
+ system->cycles = sys_cycles;
+ system->cs_id = CSID_X86_ART;
return 0;
}