HomeFreeBSD

Detect CPU type before asking VMWare for TSC freq

Description

Detect CPU type before asking VMWare for TSC freq

This allows us to set tsc_is_invariant and select appropriately
fenced versions of RDTSC based on the CPU type.

Reviewed by: markj
Sponsored by: https://www.patreon.com/cperciva

(cherry picked from commit fd980feb574d0924918b42cd449cedf557dfb9e0)

Details

Provenance
cpercivaAuthored on Jan 4 2022, 7:00 AM
Parents
rGbaee6cc1814b: x86: Speed up clock calibration
Branches
Unknown
Tags
Unknown