epoch(9): always set inited in epoch_init
- set inited in the !usedomains case Reported by: jhibbits Approved by: sbruno
This commit is contained in:
parent
3096900d09
commit
8dcbd0eae6
@ -136,8 +136,10 @@ 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);
|
||||
if (usedomains == false)
|
||||
if (usedomains == false) {
|
||||
inited = 1;
|
||||
return;
|
||||
}
|
||||
count = domain = 0;
|
||||
domoffsets[0] = 0;
|
||||
for (domain = 0; domain < vm_ndomains; domain++) {
|
||||
@ -154,7 +156,6 @@ epoch_init(void *arg __unused)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
inited = 1;
|
||||
}
|
||||
SYSINIT(epoch, SI_SUB_CPU + 1, SI_ORDER_FIRST, epoch_init, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user