* Allocate counters as early as possible so that boot-time allocations are * accounted more precisely. */
| 2996 | * accounted more precisely. |
| 2997 | */ |
| 2998 | static void |
| 2999 | uma_startup_pcpu(void *arg __unused) |
| 3000 | { |
| 3001 | |
| 3002 | zone_foreach_unlocked(zone_alloc_counters, NULL); |
| 3003 | booted = BOOT_PCPU; |
| 3004 | } |
| 3005 | SYSINIT(uma_startup_pcpu, SI_SUB_COUNTER, SI_ORDER_ANY, uma_startup_pcpu, NULL); |
| 3006 | |
| 3007 | /* |
nothing calls this directly
no test coverage detected