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
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33014

Details

Provenance
markjAuthored on Nov 19 2021, 10:29 PM
Reviewer
kib
Differential Revision
D33014: timecounter: Initialize tc_lock earlier
Parents
rG3142d4f622d2: lagg: fix unused-but-set-variable
Branches
Unknown
Tags
Unknown