MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sched_setup_smp

Function sched_setup_smp

freebsd/kern/sched_ule.c:1426–1442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1424
1425#ifdef SMP
1426static void
1427sched_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/*

Callers 1

sched_setupFunction · 0.85

Calls 4

smp_topoFunction · 0.85
tdq_setupFunction · 0.85
smp_topo_findFunction · 0.85
panicFunction · 0.70

Tested by

no test coverage detected