Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hyperv/utilities/vmbus_timesync.c
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
static devclass_t vmbus_timesync_devclass; | static devclass_t vmbus_timesync_devclass; | ||||
DRIVER_MODULE(hv_timesync, vmbus, vmbus_timesync_driver, | DRIVER_MODULE(hv_timesync, vmbus, vmbus_timesync_driver, | ||||
vmbus_timesync_devclass, NULL, NULL); | vmbus_timesync_devclass, NULL, NULL); | ||||
MODULE_VERSION(hv_timesync, 1); | MODULE_VERSION(hv_timesync, 1); | ||||
MODULE_DEPEND(hv_timesync, vmbus, 1, 1, 1); | MODULE_DEPEND(hv_timesync, vmbus, 1, 1, 1); | ||||
SYSCTL_NODE(_hw, OID_AUTO, hvtimesync, CTLFLAG_RW | CTLFLAG_MPSAFE, NULL, | SYSCTL_NODE(_hw, OID_AUTO, hvtimesync, CTLFLAG_RW, NULL, | ||||
"Hyper-V timesync interface"); | "Hyper-V timesync interface"); | ||||
static int vmbus_ts_ignore_sync = 0; | static int vmbus_ts_ignore_sync = 0; | ||||
SYSCTL_INT(_hw_hvtimesync, OID_AUTO, ignore_sync, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_hvtimesync, OID_AUTO, ignore_sync, CTLFLAG_RWTUN, | ||||
&vmbus_ts_ignore_sync, 0, "Ignore the sync request."); | &vmbus_ts_ignore_sync, 0, "Ignore the sync request."); | ||||
/* | /* | ||||
* Trigger sample sync when drift exceeds threshold (ms). | * Trigger sample sync when drift exceeds threshold (ms). | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |