Page MenuHomeFreeBSD

timecounter: Initialize tc_lock earlier
ClosedPublic

Authored by markj on Nov 16 2021, 8:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 12, 5:24 PM
Unknown Object (File)
Sat, Sep 5, 9:06 AM
Unknown Object (File)
Sat, Aug 22, 8:16 AM
Unknown Object (File)
Fri, Aug 21, 3:06 PM
Unknown Object (File)
Fri, Aug 21, 2:11 PM
Unknown Object (File)
Wed, Aug 19, 10:51 PM
Unknown Object (File)
Tue, Aug 18, 6:40 PM
Unknown Object (File)
Aug 14 2026, 4:25 PM
Subscribers

Details

Summary

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. So we cannot use MTX_SYSINIT to initialize the timecounter
lock.

This change reverts commit 9ef7df022a46 ("hyperv: Register
hyperv_timecounter later during boot") and adds some comments explaining
why things are the way they are.

PR: 259878

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42813
Build 39701: arc lint + arc unit