Page MenuHomeFreeBSD

timecounter: Initialize tc_lock earlier
ClosedPublic

Authored by markj on Nov 16 2021, 8:46 PM.
Tags
None
Referenced Files
F153342519: D33014.id98601.diff
Mon, Apr 20, 2:26 PM
F153342283: D33014.id98601.diff
Mon, Apr 20, 2:23 PM
Unknown Object (File)
Sun, Apr 19, 7:17 PM
Unknown Object (File)
Fri, Apr 17, 5:02 AM
Unknown Object (File)
Thu, Apr 16, 6:32 PM
Unknown Object (File)
Thu, Apr 16, 1:23 PM
Unknown Object (File)
Thu, Apr 16, 12:35 PM
Unknown Object (File)
Mon, Apr 13, 9:34 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