Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/
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()
/drivers/xen/events/
Devents_base.c1825 unsigned int cpu, best_cpu = UINT_MAX, minch = UINT_MAX; in select_target_cpu() local
1832 best_cpu = cpu; in select_target_cpu()
1840 if (best_cpu == UINT_MAX) in select_target_cpu()
1843 return best_cpu; in select_target_cpu()