| 1424 | |
| 1425 | #ifdef SMP |
| 1426 | static void |
| 1427 | sched_setup_smp(void) |
| 1428 | { |
| 1429 | struct tdq *tdq; |
| 1430 | int i; |
| 1431 | |
| 1432 | cpu_top = smp_topo(); |
| 1433 | CPU_FOREACH(i) { |
| 1434 | tdq = DPCPU_ID_PTR(i, tdq); |
| 1435 | tdq_setup(tdq, i); |
| 1436 | tdq->tdq_cg = smp_topo_find(cpu_top, i); |
| 1437 | if (tdq->tdq_cg == NULL) |
| 1438 | panic("Can't find cpu group for %d\n", i); |
| 1439 | } |
| 1440 | PCPU_SET(sched, DPCPU_PTR(tdq)); |
| 1441 | balance_tdq = TDQ_SELF(); |
| 1442 | } |
| 1443 | #endif |
| 1444 | |
| 1445 | /* |
no test coverage detected