epoch: actually allocate the counters we've assigned sysctls too

Approved by:	sbruno
This commit is contained in:
Matt Macy 2018-05-18 02:57:39 +00:00
parent 5e68a3dfe3
commit 60b7b90d65

View File

@ -142,6 +142,8 @@ epoch_init(void *arg __unused)
migrate_count = counter_u64_alloc(M_WAITOK);
turnstile_count = counter_u64_alloc(M_WAITOK);
switch_count = counter_u64_alloc(M_WAITOK);
epoch_call_count = counter_u64_alloc(M_WAITOK);
epoch_call_task_count = counter_u64_alloc(M_WAITOK);
if (usedomains == false)
goto done;
count = domain = 0;