HomeFreeBSD

timecounter: Initialize tc_lock earlier

Description

timecounter: Initialize tc_lock earlier

Hyper-V wants to register its MSR-based timecounter during
SI_SUB_HYPERVISOR, before SI_SUB_LOCK, since an emulated 8254 may not be
available for DELAY(). So we cannot use MTX_SYSINIT to initialize the
timecounter lock.

PR: 259878
Reviewed by: kib
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 3339950117bedb5f880f6c08982dcc5dd43f9c34)

Details

Provenance
markjAuthored on Nov 19 2021, 10:29 PM
Parents
rG291166ab493a: amd64: Annotate an unlikely condition in smp_targeted_tlb_shootdown()
Branches
Unknown
Tags
Unknown