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)
Wed, Jul 10, 11:00 AM
Unknown Object (File)
Sat, Jun 29, 12:32 AM
Unknown Object (File)
Jun 20 2024, 3:08 AM
Unknown Object (File)
Jun 3 2024, 2:23 PM
Unknown Object (File)
May 3 2024, 7:26 AM
Unknown Object (File)
Apr 30 2024, 9:39 PM
Unknown Object (File)
Apr 24 2024, 11:14 AM
Unknown Object (File)
Apr 7 2024, 3:26 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable