Lines Matching refs:target
422 * events when there is a valid target available
426 unsigned int target;
431 target = cpumask_any_but(topology_sibling_cpumask(cpu), cpu);
432 /* Migrate events if there is a valid target */
433 if (target < nr_cpu_ids) {
434 cpumask_set_cpu(target, &cstate_core_cpu_mask);
435 perf_pmu_migrate_context(&cstate_core_pmu, cpu, target);
442 target = cpumask_any_but(topology_die_cpumask(cpu), cpu);
443 /* Migrate events if there is a valid target */
444 if (target < nr_cpu_ids) {
445 cpumask_set_cpu(target, &cstate_pkg_cpu_mask);
446 perf_pmu_migrate_context(&cstate_pkg_pmu, cpu, target);
453 target = cpumask_any_but(topology_cluster_cpumask(cpu), cpu);
454 /* Migrate events if there is a valid target */
455 if (target < nr_cpu_ids) {
456 cpumask_set_cpu(target, &cstate_module_cpu_mask);
457 perf_pmu_migrate_context(&cstate_module_pmu, cpu, target);
465 unsigned int target;
471 target = cpumask_any_and(&cstate_core_cpu_mask,
474 if (has_cstate_core && target >= nr_cpu_ids)
481 target = cpumask_any_and(&cstate_pkg_cpu_mask,
483 if (has_cstate_pkg && target >= nr_cpu_ids)
490 target = cpumask_any_and(&cstate_module_cpu_mask,
492 if (has_cstate_module && target >= nr_cpu_ids)