Lines Matching refs:cpu
227 * Array of objects and profs for each type of object for each cpu. Spinlocks
230 * we only need a critical section to protect the per-cpu lists.
288 int cpu;
290 for (cpu = 0; cpu <= mp_maxid; cpu++) {
291 lp_cpu[cpu] = malloc(sizeof(*lp_cpu[cpu]), M_DEVBUF,
293 lock_prof_init_type(&lp_cpu[cpu]->lpc_types[0]);
294 lock_prof_init_type(&lp_cpu[cpu]->lpc_types[1]);
304 * Spin relinquishing our cpu so that quiesce_all_cpus may
315 int enabled, i, cpu;
333 for (cpu = 0; cpu <= mp_maxid; cpu++) {
334 lpc = lp_cpu[cpu];
340 for (cpu = 0; cpu <= mp_maxid; cpu++) {
341 lpc = lp_cpu[cpu];
374 int cpu;
381 for (cpu = 0; cpu <= mp_maxid; cpu++) {
382 if (lp_cpu[cpu] == NULL)
384 type = &lp_cpu[cpu]->lpc_types[spin];
428 int error, cpu, t;
441 for (cpu = 0; cpu <= mp_maxid; cpu++) {
442 if (lp_cpu[cpu] == NULL)
444 lock_prof_type_stats(&lp_cpu[cpu]->lpc_types[0], sb, 0, t);
445 lock_prof_type_stats(&lp_cpu[cpu]->lpc_types[1], sb, 1, t);