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)
Thu, Nov 7, 11:51 PM
Unknown Object (File)
Mon, Oct 28, 2:41 AM
Unknown Object (File)
Thu, Oct 24, 4:15 PM
Unknown Object (File)
Fri, Oct 18, 1:30 PM
Unknown Object (File)
Oct 9 2024, 8:52 PM
Unknown Object (File)
Oct 2 2024, 12:09 PM
Unknown Object (File)
Oct 1 2024, 1:45 PM
Unknown Object (File)
Oct 1 2024, 5:43 AM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable