Skip to content
Commit c2348218 authored by Daniel Leung's avatar Daniel Leung Committed by Maureen Helm
Browse files

x86: use LFENCE instead of CPUID before reading TSC for x86_64



According to Intel 64 and IA-32 Architectures Software
Developer’s Manual, volume 3, chapter 8.2.5, LFENCE provides
a more efficient method of controlling memory ordering than
the CPUID instruction. So use LFENCE here, as all 64-bit
CPUs have LFENCE.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 8197bdea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment