HomeFreeBSD

x86: Perform late TSC calibration before LAPIC timer calibration

Description

x86: Perform late TSC calibration before LAPIC timer calibration

This ensures that LAPIC calibration is done using the correct tsc_freq
value, i.e., the one associated with the TSC timecounter. It does mean
though that TSC calibration cannot use sbinuptime() to read the
reference timecounter, as timehands are not yet set up.

Reviewed by: kib, jhb
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 553af8f1ec71d397b5b4fd5876622b9269936e63)

Details

Provenance
markjAuthored on Dec 6 2021, 3:42 PM
Parents
rGc2f86ca65b67: x86: Defer LAPIC calibration until after timecounters are available
Branches
Unknown
Tags
Unknown