Home
last modified time | relevance | path

Searched refs:best_cpu (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dirq_affinity.c22 int best_cpu = -1; in cpu_get_least_loaded() local
28 best_cpu = cpu; in cpu_get_least_loaded()
31 if (best_cpu < 0) in cpu_get_least_loaded()
32 best_cpu = cpu; in cpu_get_least_loaded()
33 if (pool->irqs_per_cpu[cpu] < pool->irqs_per_cpu[best_cpu]) in cpu_get_least_loaded()
34 best_cpu = cpu; in cpu_get_least_loaded()
36 if (best_cpu == -1) { in cpu_get_least_loaded()
40 best_cpu = cpumask_first(cpu_online_mask); in cpu_get_least_loaded()
42 pool->irqs_per_cpu[best_cpu]++; in cpu_get_least_loaded()
43 return best_cpu; in cpu_get_least_loaded()
[all...]
/linux/kernel/irq/
H A Dmatrix.c138 unsigned int cpu, best_cpu, maxavl = 0; in matrix_find_best_cpu() local
141 best_cpu = UINT_MAX; in matrix_find_best_cpu()
149 best_cpu = cpu; in matrix_find_best_cpu()
152 return best_cpu; in matrix_find_best_cpu()
159 unsigned int cpu, best_cpu, allocated = UINT_MAX; in matrix_find_best_cpu_managed() local
162 best_cpu = UINT_MAX; in matrix_find_best_cpu_managed()
170 best_cpu = cpu; in matrix_find_best_cpu_managed()
173 return best_cpu; in matrix_find_best_cpu_managed()
/linux/kernel/sched/
H A Dfair.c2059 int best_cpu; member
2159 if (env->best_cpu != env->dst_cpu && xchg(&rq->numa_migrate_on, 1)) { in task_numa_assign()
2165 if (cpu == env->best_cpu || !idle_cpu(cpu) || in task_numa_assign()
2182 * Clear previous best_cpu/rq numa-migrate flag, since task now in task_numa_assign()
2185 if (env->best_cpu != -1 && env->best_cpu != env->dst_cpu) { in task_numa_assign()
2186 rq = cpu_rq(env->best_cpu); in task_numa_assign()
2197 env->best_cpu = env->dst_cpu; in task_numa_assign()
2398 if (!idle_cpu(cpu) && env->best_cpu >= 0 && in task_numa_compare()
2399 idle_cpu(env->best_cpu)) { in task_numa_compare()
7667 int cpu, best_cpu = -1; select_idle_capacity() local
[all...]
H A Drt.c1811 int best_cpu; in find_lowest_rq() local
1823 best_cpu = cpumask_any_and_distribute(lowest_mask, in find_lowest_rq()
1825 if (best_cpu < nr_cpu_ids) { in find_lowest_rq()
1827 return best_cpu; in find_lowest_rq()
H A Ddeadline.c2535 int best_cpu; in find_later_rq() local
2547 best_cpu = cpumask_any_and_distribute(later_mask, in find_later_rq()
2555 if (best_cpu < nr_cpu_ids) { in find_later_rq()
2557 return best_cpu; in find_later_rq()
/linux/drivers/xen/events/
H A Devents_base.c1805 unsigned int cpu, best_cpu = UINT_MAX, minch = UINT_MAX; in select_target_cpu() local
1812 best_cpu = cpu; in select_target_cpu()
1820 if (best_cpu == UINT_MAX) in select_target_cpu()
1823 return best_cpu; in select_target_cpu()