Lines Matching full:allowed
456 const struct cpumask *allowed = cpus_allowed ?: p->cpus_ptr; in scx_select_cpu_dfl() local
464 * Check whether @prev_cpu is still within the allowed set. If not, in scx_select_cpu_dfl()
467 is_prev_allowed = cpumask_test_cpu(prev_cpu, allowed); in scx_select_cpu_dfl()
472 if (allowed != p->cpus_ptr) { in scx_select_cpu_dfl()
476 allowed = cpus_allowed; in scx_select_cpu_dfl()
478 allowed = local_cpus; in scx_select_cpu_dfl()
501 if (allowed == p->cpus_ptr && task_affinity_all(p)) in scx_select_cpu_dfl()
503 else if (cpus && cpumask_and(local_cpus, allowed, cpus)) in scx_select_cpu_dfl()
511 if (allowed == p->cpus_ptr && task_affinity_all(p)) in scx_select_cpu_dfl()
513 else if (cpus && cpumask_and(local_cpus, allowed, cpus)) in scx_select_cpu_dfl()
552 if (cpumask_test_cpu(cpu, allowed)) in scx_select_cpu_dfl()
598 cpu = scx_pick_idle_cpu(allowed, node, flags | SCX_PICK_IDLE_CORE); in scx_select_cpu_dfl()
646 cpu = scx_pick_idle_cpu(allowed, node, flags); in scx_select_cpu_dfl()
864 const struct cpumask *allowed, u64 flags) in select_cpu_from_kfunc() argument
904 * used CPU is idle and within the allowed cpumask. in select_cpu_from_kfunc()
907 if (cpumask_test_cpu(prev_cpu, allowed ?: p->cpus_ptr) && in select_cpu_from_kfunc()
914 allowed ?: p->cpus_ptr, flags); in select_cpu_from_kfunc()
978 * @cpus_allowed: cpumask of allowed CPUs
1136 * @cpus_allowed: Allowed cpumask
1165 * @cpus_allowed: Allowed cpumask
1202 * @cpus_allowed: Allowed cpumask
1245 * @cpus_allowed: Allowed cpumask