* Start worker threads for additional CPUs. No attempt to gracefully handle * work reassignment, we don't yet support dynamic reconfiguration. */
| 1349 | * work reassignment, we don't yet support dynamic reconfiguration. |
| 1350 | */ |
| 1351 | static void |
| 1352 | netisr_start(void *arg) |
| 1353 | { |
| 1354 | struct pcpu *pc; |
| 1355 | |
| 1356 | STAILQ_FOREACH(pc, &cpuhead, pc_allcpu) { |
| 1357 | if (nws_count >= netisr_maxthreads) |
| 1358 | break; |
| 1359 | /* Worker will already be present for boot CPU. */ |
| 1360 | if (pc->pc_netisr != NULL) |
| 1361 | continue; |
| 1362 | netisr_start_swi(pc->pc_cpuid, pc); |
| 1363 | } |
| 1364 | } |
| 1365 | SYSINIT(netisr_start, SI_SUB_SMP, SI_ORDER_MIDDLE, netisr_start, NULL); |
| 1366 | #endif |
| 1367 |
nothing calls this directly
no test coverage detected