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

Function platform_cpu_mask

freebsd/mips/malta/malta_mp.c:209–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void
210platform_cpu_mask(cpuset_t *mask)
211{
212 uint32_t i, ncpus, reg;
213
214 reg = mftc0(0, 2);
215 ncpus = ((reg & MVPCONF0_PVPE_MASK) >> MVPCONF0_PVPE_SHIFT) + 1;
216
217 CPU_ZERO(mask);
218 for (i = 0; i < ncpus; i++)
219 CPU_SET(i, mask);
220}
221
222struct cpu_group *
223platform_smp_topo(void)

Callers 2

cpu_mp_setmaxidFunction · 0.50
cpu_mp_startFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected