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)
Sun, Mar 23, 12:38 PM
Unknown Object (File)
Feb 22 2025, 2:40 AM
Unknown Object (File)
Feb 10 2025, 12:20 AM
Unknown Object (File)
Feb 4 2025, 4:00 AM
Unknown Object (File)
Jan 27 2025, 12:43 AM
Unknown Object (File)
Jan 27 2025, 12:38 AM
Unknown Object (File)
Jan 18 2025, 9:20 PM
Unknown Object (File)
Jan 18 2025, 8:54 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