Lines Matching defs:cpu
169 * Array of objects and profs for each type of object for each cpu. Spinlocks
172 * we only need a critical section to protect the per-cpu lists.
230 int cpu;
232 for (cpu = 0; cpu <= mp_maxid; cpu++) {
233 lp_cpu[cpu] = malloc(sizeof(*lp_cpu[cpu]), M_DEVBUF,
235 lock_prof_init_type(&lp_cpu[cpu]->lpc_types[0]);
236 lock_prof_init_type(&lp_cpu[cpu]->lpc_types[1]);
251 int cpu;
255 CPU_FOREACH(cpu) {
256 sched_bind(td, cpu);
267 * Spin relinquishing our cpu so that lock_prof_idle may
278 int enabled, i, cpu;
296 for (cpu = 0; cpu <= mp_maxid; cpu++) {
297 lpc = lp_cpu[cpu];
303 for (cpu = 0; cpu <= mp_maxid; cpu++) {
304 lpc = lp_cpu[cpu];
337 int cpu;
344 for (cpu = 0; cpu <= mp_maxid; cpu++) {
345 if (lp_cpu[cpu] == NULL)
347 type = &lp_cpu[cpu]->lpc_types[spin];
391 int error, cpu, t;
404 for (cpu = 0; cpu <= mp_maxid; cpu++) {
405 if (lp_cpu[cpu] == NULL)
407 lock_prof_type_stats(&lp_cpu[cpu]->lpc_types[0], sb, 0, t);
408 lock_prof_type_stats(&lp_cpu[cpu]->lpc_types[1], sb, 1, t);