* Finish our initialization steps. */
| 3008 | * Finish our initialization steps. |
| 3009 | */ |
| 3010 | static void |
| 3011 | uma_startup3(void *arg __unused) |
| 3012 | { |
| 3013 | |
| 3014 | #ifdef INVARIANTS |
| 3015 | TUNABLE_INT_FETCH("vm.debug.divisor", &dbg_divisor); |
| 3016 | uma_dbg_cnt = counter_u64_alloc(M_WAITOK); |
| 3017 | uma_skip_cnt = counter_u64_alloc(M_WAITOK); |
| 3018 | #endif |
| 3019 | zone_foreach_unlocked(zone_alloc_sysctl, NULL); |
| 3020 | callout_init(&uma_callout, 1); |
| 3021 | callout_reset(&uma_callout, UMA_TIMEOUT * hz, uma_timeout, NULL); |
| 3022 | booted = BOOT_RUNNING; |
| 3023 | |
| 3024 | EVENTHANDLER_REGISTER(shutdown_post_sync, uma_shutdown, NULL, |
| 3025 | EVENTHANDLER_PRI_FIRST); |
| 3026 | } |
| 3027 | SYSINIT(uma_startup3, SI_SUB_VM_CONF, SI_ORDER_SECOND, uma_startup3, NULL); |
| 3028 | |
| 3029 | static void |
nothing calls this directly
no test coverage detected