Skip to content

Commit bd48b50

Browse files
committed
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 <[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 3a52886 commit bd48b50

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/ethernet/intel/e1000e

1 file changed

+2
-1
lines changed

drivers/net/ethernet/intel/e1000e/ptp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ static int e1000e_phc_get_syncdevicetime(ktime_t *device,
124124
sys_cycles = er32(PLTSTMPH);
125125
sys_cycles <<= 32;
126126
sys_cycles |= er32(PLTSTMPL);
127-
*system = convert_art_to_tsc(sys_cycles);
127+
system->cycles = sys_cycles;
128+
system->cs_id = CSID_X86_ART;
128129

129130
return 0;
130131
}

0 commit comments

Comments
 (0)