Lines Matching refs:prev_cpu

226 	s32 (*select_cpu)(struct task_struct *p, s32 prev_cpu, u64 wake_flags);
3101 static s32 scx_select_cpu_dfl(struct task_struct *p, s32 prev_cpu, in scx_select_cpu_dfl() argument
3130 if (cpumask_test_cpu(prev_cpu, idle_masks.smt) && in scx_select_cpu_dfl()
3131 test_and_clear_cpu_idle(prev_cpu)) { in scx_select_cpu_dfl()
3132 cpu = prev_cpu; in scx_select_cpu_dfl()
3141 if (test_and_clear_cpu_idle(prev_cpu)) { in scx_select_cpu_dfl()
3142 cpu = prev_cpu; in scx_select_cpu_dfl()
3150 return prev_cpu; in scx_select_cpu_dfl()
3157 static int select_task_rq_scx(struct task_struct *p, int prev_cpu, int wake_flags) in select_task_rq_scx() argument
3170 return prev_cpu; in select_task_rq_scx()
3181 select_cpu, p, prev_cpu, wake_flags); in select_task_rq_scx()
3186 return prev_cpu; in select_task_rq_scx()
3191 cpu = scx_select_cpu_dfl(p, prev_cpu, wake_flags, &found); in select_task_rq_scx()
5544 static s32 select_cpu_stub(struct task_struct *p, s32 prev_cpu, u64 wake_flags) { return -EINVAL; } in select_cpu_stub() argument
5547 static void dispatch_stub(s32 prev_cpu, struct task_struct *p) {} in dispatch_stub() argument
5916 __bpf_kfunc s32 scx_bpf_select_cpu_dfl(struct task_struct *p, s32 prev_cpu, in scx_bpf_select_cpu_dfl() argument
5921 goto prev_cpu; in scx_bpf_select_cpu_dfl()
5925 goto prev_cpu; in scx_bpf_select_cpu_dfl()
5928 return scx_select_cpu_dfl(p, prev_cpu, wake_flags, is_idle); in scx_bpf_select_cpu_dfl()
5931 prev_cpu: in scx_bpf_select_cpu_dfl()
5933 return prev_cpu; in scx_bpf_select_cpu_dfl()