Home
last modified time | relevance | path

Searched refs:nr_cpus_allowed (Results 1 – 19 of 19) sorted by relevance

/linux-6.15/tools/testing/selftests/sched_ext/
H A Ddsp_local_on.bpf.c46 if (p->nr_cpus_allowed == nr_cpus && !is_migration_disabled(p)) in BPF_STRUCT_OPS()
/linux-6.15/include/linux/
H A Dmm_types.h969 unsigned int nr_cpus_allowed; member
1344 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()
H A Dsched.h912 int nr_cpus_allowed; member
1782 (current->nr_cpus_allowed == 1); in is_percpu_thread()
/linux-6.15/kernel/sched/
H A Ddeadline.c2255 (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 …]
H A Drt.c1480 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()
H A Didle.c389 WARN_ON_ONCE(current->nr_cpus_allowed != 1); in play_idle_precise()
H A Dsched.h2599 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()
H A Dext_idle.c450 if (p->nr_cpus_allowed >= num_possible_cpus()) { in scx_select_cpu_dfl()
H A Dcore.c2707 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()
H A Dfair.c5127 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()
H A Dext.c6630 if (p->migration_pending || is_migration_disabled(p) || p->nr_cpus_allowed == 1) in scx_bpf_reenqueue_local()
/linux-6.15/init/
H A Dinit_task.c83 .nr_cpus_allowed= NR_CPUS,
/linux-6.15/tools/sched_ext/
H A Dscx_central.bpf.c114 if ((p->flags & PF_KTHREAD) && p->nr_cpus_allowed == 1) { in BPF_STRUCT_OPS()
H A Dscx_flatcg.bpf.c362 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()
H A Dscx_qmap.bpf.c138 if (p->nr_cpus_allowed == 1 || in pick_direct_dispatch_cpu()
/linux-6.15/drivers/infiniband/hw/hfi1/
H A Daffinity.c1008 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()
H A Dsdma.c838 if (current->nr_cpus_allowed != 1) in sdma_select_user_engine()
/linux-6.15/drivers/infiniband/hw/qib/
H A Dqib_file_ops.c1144 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()
/linux-6.15/kernel/trace/
H A Dtrace_osnoise.c2408 if (current->nr_cpus_allowed > 1 || cpu != smp_processor_id()) { in timerlat_fd_open()