| /linux/tools/testing/selftests/sched_ext/ |
| H A D | numa.bpf.c | 52 s32 task_cpu = scx_bpf_task_cpu(p); in BPF_STRUCT_OPS() local 53 int node = __COMPAT_scx_bpf_cpu_node(task_cpu); in BPF_STRUCT_OPS() 76 if (cpu < 0 && !bpf_cpumask_test_cpu(task_cpu, p->cpus_ptr)) in BPF_STRUCT_OPS()
|
| /linux/Documentation/translations/zh_CN/scheduler/ |
| H A D | sched-capacity.rst | 302 task_util(p) < capacity(task_cpu(p)) 358 则任务可能变为CPU受限的,也就是说 ``task_util(p) > capacity(task_cpu(p))`` ;CPU算力 374 task_uclamp_min(p) <= capacity(task_cpu(cpu)) 387 task_bandwidth(p) < capacity(task_cpu(p))
|
| /linux/kernel/sched/ |
| H A D | core.c | 352 int cpu = task_cpu(p); in sched_core_next() 563 return per_cpu(sd_llc_id, task_cpu(p)); in task_llc() 2290 return cpu_curr(task_cpu(p)) == p; in task_curr() 2569 WARN_ON_ONCE(task_cpu(p) != new_cpu); in move_queued_task() 2670 if (cpumask_test_cpu(task_cpu(p), &p->cpus_mask)) in migration_cpu_stop() 2703 if (cpumask_test_cpu(task_cpu(p), p->cpus_ptr)) { in migration_cpu_stop() 2718 stop_one_cpu_nowait(task_cpu(p), migration_cpu_stop, in migration_cpu_stop() 2983 if (cpumask_test_cpu(task_cpu(p), &p->cpus_mask) || in affine_move_task() 3171 !cpumask_test_cpu(task_cpu(p), ctx->new_mask))) { in __set_cpus_allowed_ptr_locked() 3393 if (task_cpu(p) != new_cpu) { in set_task_cpu() [all …]
|
| H A D | psi.c | 900 task->pid, task->comm, task_cpu(task), in psi_flags_change() 911 int cpu = task_cpu(task); in psi_task_change() 930 int cpu = task_cpu(prev); in psi_task_switch() 1008 int cpu = task_cpu(curr); in psi_account_irqtime()
|
| H A D | deadline.c | 445 struct dl_bw *dl_b = dl_bw_of(task_cpu(p)); in task_non_contending() 450 __dl_sub(dl_b, dl_se->dl_bw, dl_bw_cpus(task_cpu(p))); in task_non_contending() 2174 struct dl_bw *dl_b = dl_bw_of(task_cpu(p)); in inactive_task_timer() 2183 __dl_sub(dl_b, p->dl.dl_bw, dl_bw_cpus(task_cpu(p))); in inactive_task_timer() 2938 int cpu = task_cpu(task); in find_later_rq() 3043 WARN_ON_ONCE(rq->cpu != task_cpu(p)); in pick_next_pushable_dl_task() 3348 __dl_sub(src_dl_b, p->dl.dl_bw, dl_bw_cpus(task_cpu(p))); in set_cpus_allowed_dl() 3785 int cpus, err = -1, cpu = task_cpu(p); in sched_dl_overflow()
|
| H A D | cpudeadline.c | 138 (cpu == task_cpu(p) && cap == max_cap)) { in cpudl_find()
|
| H A D | cpuacct.c | 338 unsigned int cpu = task_cpu(tsk); in cpuacct_charge()
|
| H A D | idle.c | 464 return task_cpu(p); /* IDLE tasks as never migrated */ in select_task_rq_idle()
|
| H A D | sched.h | 1442 #define task_rq(p) cpu_rq(task_cpu(p)) 2687 int (*select_task_rq)(struct task_struct *p, int task_cpu, int flags);
|
| /linux/kernel/trace/ |
| H A D | trace_sched_wakeup.c | 408 entry->next_cpu = task_cpu(next); in tracing_sched_switch_trace() 434 entry->next_cpu = task_cpu(wakee); in tracing_sched_wakeup_trace() 579 wakeup_cpu = task_cpu(p); in probe_wakeup()
|
| H A D | trace_osnoise.c | 1227 long cpu = task_cpu(p); in trace_sched_migrate_callback()
|
| /linux/Documentation/scheduler/ |
| H A D | sched-capacity.rst | 342 task_util(p) < capacity(task_cpu(p)) 405 then it might become CPU-bound, IOW ``task_util(p) > capacity(task_cpu(p))``; 424 task_uclamp_min(p) <= capacity(task_cpu(cpu)) 438 task_bandwidth(p) < capacity(task_cpu(p))
|
| /linux/include/linux/ |
| H A D | sched.h | 2272 static inline unsigned int task_cpu(const struct task_struct *p) in task_cpu() function 2281 static inline unsigned int task_cpu(const struct task_struct *p) in task_cpu() function 2329 return READ_ONCE(owner->on_cpu) && !vcpu_is_preempted(task_cpu(owner)); in owner_on_cpu() 2388 return task_cpu(t); in task_mm_cid()
|
| /linux/kernel/rcu/ |
| H A D | tree_stall.h | 467 cpu = task_cpu(rcuc); in rcu_is_rcuc_kthread_starving() 575 cpu = gpk ? task_cpu(gpk) : -1; in rcu_check_gp_kthread_starvation() 618 cpu = task_cpu(gpk); in rcu_check_gp_kthread_expired_fqs_timer()
|
| H A D | tree.c | 770 cpu = task_cpu(t); in rcu_request_urgent_qs_task()
|
| /linux/kernel/sched/ext/ |
| H A D | ext.c | 1612 dsq = find_global_dsq(sch, task_cpu(p)); in scx_dispatch_enqueue() 1914 find_dsq_for_dispatch(sch, rq, p->scx.ddsp_dsq_id, task_cpu(p)); in direct_dispatch() 2088 dsq = find_global_dsq(sch, task_cpu(p)); in scx_do_enqueue_task() 2091 dsq = bypass_enq_target_dsq(sch, task_cpu(p)); in scx_do_enqueue_task() 2476 WARN_ON_ONCE(task_cpu(p) == cpu); in task_can_run_on_remote_rq() 2493 p->comm, p->pid, task_cpu(p), cpu); in task_can_run_on_remote_rq() 2615 dst_dsq = find_global_dsq(sch, task_cpu(p)); in move_task_between_dsqs() 2781 scx_dispatch_enqueue(sch, src_rq, find_global_dsq(sch, task_cpu(p)), in dispatch_to_local_dsq() 2880 dsq = find_dsq_for_dispatch(sch, rq, dsq_id, task_cpu(p)); in finish_dispatch() 3510 if (sch && !scx_bypassing(sch, task_cpu(a)) && !scx_bypassing(sch, task_cpu(b))) in scx_prio_less() [all …]
|
| /linux/arch/parisc/kernel/ |
| H A D | traps.c | 154 level, task_cpu(current), cr30, cr31); in show_regs()
|
| /linux/kernel/ |
| H A D | rseq.c | 294 ids.cpu_id = task_cpu(t); in rseq_slowpath_update_usr()
|
| /linux/fs/resctrl/ |
| H A D | rdtgroup.c | 619 smp_call_function_single(task_cpu(t), _update_task_closid_rmid, t, 1); in update_task_closid_rmid() 2993 cpumask_set_cpu(task_cpu(t), mask); in rdt_move_group_tasks()
|
| /linux/kernel/events/ |
| H A D | core.c | 83 if (task_cpu(p) != smp_processor_id()) in remote_function() 124 ret = smp_call_function_single(task_cpu(p), remote_function, in task_function_call()
|
| /linux/Documentation/filesystems/ |
| H A D | proc.rst | 365 task_cpu which CPU the task is scheduled on
|