Lines Matching defs:cpu
194 static lck_mtx_t cpu_monitor_queue_mutex; /* protects per-cpu queues at initialisation time */
340 static void perf_monitor_init(perf_monitor_t pm, int cpu) {
351 pm->cpu = cpu;
366 * accessible from a single cpu only.
368 queue_remove(cpu_monitor_queues[pm->cpu], pm, perf_monitor_t, cpu_link);
391 if (pm->cpu >= 0) {
393 * to block until cpu initialisation is complete.
418 queue_enter(cpu_monitor_queues[pm->cpu], pm, perf_monitor_t, cpu_link);
1463 /* Clear that the this reservation was active when this cpu did its last context in */
1492 /* Mark that the reservation was active when this cpu did its last context in */
1639 * to set this cpu's bit in the active_last_context_in mask. If we set it, call context_in.
1644 COUNTER_DEBUG("Starting already in-context reservation %p for cpu %d\n", reservation, cpu_number());
1658 COUNTER_DEBUG("Stopping in-context reservation %p for cpu %d\n", reservation, cpu_number());
1692 * on every cpu that can access the PMC.
1760 int cpu = -1;
1786 cpu = cores[0];
1814 perf_monitor_init(pm, cpu);
2537 * on every cpu that can access the PMC.
2571 * on every cpu that can access the PMC.
2718 * on every cpu that can access the PMC.