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, Jan 18, 9:20 PM
Unknown Object (File)
Sat, Jan 18, 8:54 PM
Unknown Object (File)
Sat, Jan 18, 8:29 PM
Unknown Object (File)
Mon, Jan 6, 9:16 PM
Unknown Object (File)
Nov 25 2024, 7:57 PM
Unknown Object (File)
Nov 7 2024, 11:51 PM
Unknown Object (File)
Oct 28 2024, 2:41 AM
Unknown Object (File)
Oct 24 2024, 4:15 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