Searched refs:nr_cpus_allowed (Results 1 – 19 of 19) sorted by relevance
46 if (p->nr_cpus_allowed == nr_cpus && !is_migration_disabled(p)) in BPF_STRUCT_OPS()
969 unsigned int nr_cpus_allowed; member1344 mm->nr_cpus_allowed = p->nr_cpus_allowed; in mm_init_cid()1381 WRITE_ONCE(mm->nr_cpus_allowed, cpumask_weight(mm_allowed)); in mm_set_cpus_allowed()
912 int nr_cpus_allowed; member1782 (current->nr_cpus_allowed == 1); in is_percpu_thread()
2255 (curr->nr_cpus_allowed < 2 || in select_task_rq_dl()2257 p->nr_cpus_allowed > 1; in select_task_rq_dl()2317 if (rq->curr->nr_cpus_allowed == 1 || in check_preempt_equal_dl()2325 if (p->nr_cpus_allowed != 1 && in check_preempt_equal_dl()2468 if (on_dl_rq(&p->dl) && p->nr_cpus_allowed > 1) in put_prev_task_dl()2546 if (task->nr_cpus_allowed == 1) in find_later_rq()2688 WARN_ON_ONCE(p->nr_cpus_allowed <= 1); in pick_next_pushable_dl_task()2719 rq->curr->nr_cpus_allowed > 1) { in push_dl_task()2879 p->nr_cpus_allowed > 1 && in task_woken_dl()2881 (rq->curr->nr_cpus_allowed < 2 || in task_woken_dl()[all …]
1480 if (!task_current(rq, p) && p->nr_cpus_allowed > 1) in enqueue_task_rt()1578 (curr->nr_cpus_allowed < 2 || donor->prio <= p->prio); in select_task_rq_rt()1608 if (rq->curr->nr_cpus_allowed == 1 || in check_preempt_equal_prio()1616 if (p->nr_cpus_allowed != 1 && in check_preempt_equal_prio()1764 if (on_rt_rq(&p->rt) && p->nr_cpus_allowed > 1) in put_prev_task_rt()1807 if (task->nr_cpus_allowed == 1) in find_lowest_rq()1960 BUG_ON(p->nr_cpus_allowed <= 1); in pick_next_pushable_task()2386 p->nr_cpus_allowed > 1 && in task_woken_rt()2388 (rq->curr->nr_cpus_allowed < 2 || in task_woken_rt()2470 if (p->nr_cpus_allowed > 1 && rq->rt.overloaded) in switched_to_rt()
389 WARN_ON_ONCE(current->nr_cpus_allowed != 1); in play_idle_precise()
2599 if (p->nr_cpus_allowed == 1) in get_push_task()3562 if (p->nr_cpus_allowed != 1) in is_per_cpu_kthread()3668 while ((allowed_max_nr_cid = min_t(int, READ_ONCE(mm->nr_cpus_allowed), in __mm_cid_try_get()3689 while (cid < READ_ONCE(mm->nr_cpus_allowed) && cid < atomic_read(&mm->mm_users)) { in __mm_cid_try_get()3704 if (cid < READ_ONCE(mm->nr_cpus_allowed)) in __mm_cid_try_get()
450 if (p->nr_cpus_allowed >= num_possible_cpus()) { in scx_select_cpu_dfl()
2707 p->nr_cpus_allowed = cpumask_weight(ctx->new_mask); in set_cpus_allowed_common()3582 if (p->nr_cpus_allowed > 1 && !is_migration_disabled(p)) { in select_task_rq()10447 if (dst_cid_is_set && atomic_read(&mm->mm_users) >= READ_ONCE(mm->nr_cpus_allowed)) in sched_mm_cid_migrate_to()
5127 if (!p || (p->nr_cpus_allowed == 1) || in update_misfit_status()10918 if (p->nr_cpus_allowed != NR_CPUS) { in sched_balance_find_dst_group()
6630 if (p->migration_pending || is_migration_disabled(p) || p->nr_cpus_allowed == 1) in scx_bpf_reenqueue_local()
83 .nr_cpus_allowed= NR_CPUS,
114 if ((p->flags & PF_KTHREAD) && p->nr_cpus_allowed == 1) { in BPF_STRUCT_OPS()
362 if (p->nr_cpus_allowed != nr_cpus) { in BPF_STRUCT_OPS()373 if (p->nr_cpus_allowed == 1 && (p->flags & PF_KTHREAD)) { in BPF_STRUCT_OPS()
138 if (p->nr_cpus_allowed == 1 || in pick_direct_dispatch_cpu()
1008 if (current->nr_cpus_allowed == 1) { in hfi1_get_proc_affinity()1019 } else if (current->nr_cpus_allowed < cpumask_weight(&set->mask)) { in hfi1_get_proc_affinity()
838 if (current->nr_cpus_allowed != 1) in sdma_select_user_engine()
1144 const unsigned int weight = current->nr_cpus_allowed; in assign_ctxt_affinity()1626 const unsigned int weight = current->nr_cpus_allowed; in qib_assign_ctxt()
2408 if (current->nr_cpus_allowed > 1 || cpu != smp_processor_id()) { in timerlat_fd_open()