HomeFreeBSD

x86: cpufunc: Add rdtsc_ordered()

Description

x86: cpufunc: Add rdtsc_ordered()

Add a variant of 'rdtsc()' that performs the ordered version of 'rdtsc'
appropriate for the invoking x86 variant.

Also, expose the 'lfence'-ed and 'mfence'-ed 'rdtsc()' variants needed
by 'rdtsc_ordered()' for general use.

Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D31416

(cherry picked from commit 652ae7b11485d9f991ea66a56aa79d4dd9cd1103)

Details

Provenance
adam_fenn.ioAuthored on Jul 28 2021, 5:12 PM
kibCommitted on Oct 12 2021, 4:01 PM
Reviewer
kib
Differential Revision
D31416: x86: cpufunc: Add rdtsc_ordered()
Parents
rGe088ad2d0efe: x86: cpufunc: Add rdtscp_aux()
Branches
Unknown
Tags
Unknown