mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
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
This commit is contained in:
parent
3a52886c8f
commit
bd48b50be5
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user