Searched refs:best_cpu (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | irq_affinity.c | 22 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()
|
/linux-6.1.9/kernel/irq/ |
D | matrix.c | 132 unsigned int cpu, best_cpu, maxavl = 0; in matrix_find_best_cpu() local 135 best_cpu = UINT_MAX; in matrix_find_best_cpu() 143 best_cpu = cpu; in matrix_find_best_cpu() 146 return best_cpu; in matrix_find_best_cpu() 153 unsigned int cpu, best_cpu, allocated = UINT_MAX; in matrix_find_best_cpu_managed() local 156 best_cpu = UINT_MAX; in matrix_find_best_cpu_managed() 164 best_cpu = cpu; in matrix_find_best_cpu_managed() 167 return best_cpu; in matrix_find_best_cpu_managed()
|
/linux-6.1.9/kernel/sched/ |
D | cpudeadline.c | 149 int best_cpu = cpudl_maximum(cp); in cpudl_find() local 151 WARN_ON(best_cpu != -1 && !cpu_present(best_cpu)); in cpudl_find() 153 if (cpumask_test_cpu(best_cpu, &p->cpus_mask) && in cpudl_find() 156 cpumask_set_cpu(best_cpu, later_mask); in cpudl_find()
|
D | fair.c | 1722 int best_cpu; member 1822 if (env->best_cpu != env->dst_cpu && xchg(&rq->numa_migrate_on, 1)) { in task_numa_assign() 1828 if (cpu == env->best_cpu || !idle_cpu(cpu) || in task_numa_assign() 1848 if (env->best_cpu != -1 && env->best_cpu != env->dst_cpu) { in task_numa_assign() 1849 rq = cpu_rq(env->best_cpu); in task_numa_assign() 1860 env->best_cpu = env->dst_cpu; in task_numa_assign() 2060 if (!idle_cpu(cpu) && env->best_cpu >= 0 && in task_numa_compare() 2061 idle_cpu(env->best_cpu)) { in task_numa_compare() 2062 cpu = env->best_cpu; in task_numa_compare() 2075 if (maymove && !cur && env->best_cpu >= 0 && idle_cpu(env->best_cpu)) in task_numa_compare() [all …]
|
D | deadline.c | 2176 int best_cpu; in find_later_rq() local 2188 best_cpu = cpumask_any_and_distribute(later_mask, in find_later_rq() 2196 if (best_cpu < nr_cpu_ids) { in find_later_rq() 2198 return best_cpu; in find_later_rq()
|
D | rt.c | 1931 int best_cpu; in find_lowest_rq() local 1943 best_cpu = cpumask_any_and_distribute(lowest_mask, in find_lowest_rq() 1945 if (best_cpu < nr_cpu_ids) { in find_lowest_rq() 1947 return best_cpu; in find_lowest_rq()
|
/linux-6.1.9/drivers/xen/events/ |
D | events_base.c | 1832 unsigned int cpu, best_cpu = UINT_MAX, minch = UINT_MAX; in select_target_cpu() local 1839 best_cpu = cpu; in select_target_cpu() 1847 if (best_cpu == UINT_MAX) in select_target_cpu() 1850 return best_cpu; in select_target_cpu()
|