HomeFreeBSD

Use MFENCE to serialize RDTSC on non-Intel CPUs.

Description

Use MFENCE to serialize RDTSC on non-Intel CPUs.

Kernel already used the stronger barrier instruction for AMDs, correct
the userspace fast gettimeofday() implementation as well.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D11728

Details

Provenance
kibAuthored on
Differential Revision
D11728: Use MFENCE to sync RDTSC on non-Intel CPUs.
Parents
rS321607: Allow to specify targets by absolute paths in libmap.conf.
Branches
Unknown
Tags
Unknown