Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_tc.c
Show First 20 Lines • Show All 1,189 Lines • ▼ Show 20 Lines | tc_init(struct timecounter *tc) | ||||
if (u > hz && tc->tc_quality >= 0) { | if (u > hz && tc->tc_quality >= 0) { | ||||
tc->tc_quality = -2000; | tc->tc_quality = -2000; | ||||
if (bootverbose) { | if (bootverbose) { | ||||
printf("Timecounter \"%s\" frequency %ju Hz", | printf("Timecounter \"%s\" frequency %ju Hz", | ||||
tc->tc_name, (uintmax_t)tc->tc_frequency); | tc->tc_name, (uintmax_t)tc->tc_frequency); | ||||
printf(" -- Insufficient hz, needs at least %u\n", u); | printf(" -- Insufficient hz, needs at least %u\n", u); | ||||
} | } | ||||
} else if (tc->tc_quality >= 0 || bootverbose) { | } else if (tc->tc_quality >= 0 || bootverbose) { | ||||
if (vm_guest != VM_GUEST_HV) | |||||
printf("Timecounter \"%s\" frequency %ju Hz quality %d\n", | printf("Timecounter \"%s\" frequency %ju Hz quality %d\n", | ||||
tc->tc_name, (uintmax_t)tc->tc_frequency, | tc->tc_name, (uintmax_t)tc->tc_frequency, | ||||
tc->tc_quality); | tc->tc_quality); | ||||
} | } | ||||
/* | /* | ||||
* Set up sysctl tree for this counter. | * Set up sysctl tree for this counter. | ||||
*/ | */ | ||||
tc_root = SYSCTL_ADD_NODE_WITH_LABEL(NULL, | tc_root = SYSCTL_ADD_NODE_WITH_LABEL(NULL, | ||||
SYSCTL_STATIC_CHILDREN(_kern_timecounter_tc), OID_AUTO, tc->tc_name, | SYSCTL_STATIC_CHILDREN(_kern_timecounter_tc), OID_AUTO, tc->tc_name, | ||||
CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
▲ Show 20 Lines • Show All 1,055 Lines • Show Last 20 Lines |