Home
last modified time | relevance | path

Searched refs:next_task (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/arch/arc/kernel/
H A Dctx_sw.c21 __switch_to(struct task_struct *prev_task, struct task_struct *next_task) in __switch_to() argument
25 unsigned int next = (unsigned int)next_task; in __switch_to()
/kernel/linux/linux-6.6/kernel/bpf/
H A Dtask_iter.c38 struct task_struct *task, *next_task; in task_group_seq_get_next() local
83 next_task = next_thread(task); in task_group_seq_get_next()
85 if (!next_task) in task_group_seq_get_next()
89 *tid = __task_pid_nr_ns(next_task, PIDTYPE_PID, common->ns); in task_group_seq_get_next()
98 get_task_struct(next_task); in task_group_seq_get_next()
102 task = next_task; in task_group_seq_get_next()
106 return next_task; in task_group_seq_get_next()
546 goto next_task; in task_vma_seq_get_next()
580 goto next_task; in task_vma_seq_get_next()
587 next_task in task_vma_seq_get_next()
[all...]
/kernel/linux/linux-5.10/kernel/sched/
H A Drt.c2045 struct task_struct *next_task = pick_next_pushable_task(rq); in find_lock_lowest_rq() local
2046 if (unlikely(next_task != task || in find_lock_lowest_rq()
2073 struct task_struct *next_task; in push_rt_task() local
2080 next_task = pick_next_pushable_task(rq); in push_rt_task()
2081 if (!next_task) in push_rt_task()
2085 if (WARN_ON(next_task == rq->curr)) in push_rt_task()
2089 * It's possible that the next_task slipped in of in push_rt_task()
2093 if (unlikely(next_task->prio < rq->curr->prio)) { in push_rt_task()
2099 get_task_struct(next_task); in push_rt_task()
2102 lowest_rq = find_lock_lowest_rq(next_task, r in push_rt_task()
2642 struct task_struct *next_task = busiest_rq->rt_push_task; rt_active_load_balance_cpu_stop() local
[all...]
H A Ddeadline.c2097 struct task_struct *next_task; in find_lock_later_rq() local
2104 next_task = pick_next_pushable_dl_task(rq); in find_lock_later_rq()
2105 if (unlikely(next_task != task || in find_lock_later_rq()
2138 struct task_struct *next_task; in push_dl_task() local
2145 next_task = pick_next_pushable_dl_task(rq); in push_dl_task()
2146 if (!next_task) in push_dl_task()
2150 if (WARN_ON(next_task == rq->curr)) in push_dl_task()
2154 * If next_task preempts rq->curr, and rq->curr in push_dl_task()
2156 * without going further in pushing next_task. in push_dl_task()
2159 dl_time_before(next_task in push_dl_task()
[all...]
/kernel/linux/linux-6.6/kernel/sched/
H A Drt.c2255 struct task_struct *next_task; in push_rt_task() local
2262 next_task = pick_next_pushable_task(rq); in push_rt_task()
2263 if (!next_task) in push_rt_task()
2268 * It's possible that the next_task slipped in of in push_rt_task()
2272 if (unlikely(next_task->prio < rq->curr->prio)) { in push_rt_task()
2277 if (is_migration_disabled(next_task)) { in push_rt_task()
2287 * be of higher priority than next_task, so no need to in push_rt_task()
2301 * Given we found a CPU with lower priority than @next_task, in push_rt_task()
2319 if (WARN_ON(next_task == rq->curr)) in push_rt_task()
2323 get_task_struct(next_task); in push_rt_task()
2878 struct task_struct *next_task = busiest_rq->rt_push_task; rt_active_load_balance_cpu_stop() local
[all...]
H A Ddeadline.c2293 struct task_struct *next_task; in push_dl_task() local
2300 next_task = pick_next_pushable_dl_task(rq); in push_dl_task()
2301 if (!next_task) in push_dl_task()
2306 * If next_task preempts rq->curr, and rq->curr in push_dl_task()
2308 * without going further in pushing next_task. in push_dl_task()
2311 dl_time_before(next_task->dl.deadline, rq->curr->dl.deadline) && in push_dl_task()
2317 if (is_migration_disabled(next_task)) in push_dl_task()
2320 if (WARN_ON(next_task == rq->curr)) in push_dl_task()
2324 get_task_struct(next_task); in push_dl_task()
2327 later_rq = find_lock_later_rq(next_task, r in push_dl_task()
[all...]
/kernel/linux/linux-5.10/include/linux/fsl/bestcomm/
H A Dbestcomm_priv.h335 bcom_set_task_auto_start(int task, int next_task) in bcom_set_task_auto_start() argument
338 out_be16(tcr, (in_be16(tcr) & ~0xff) | 0x00c0 | next_task); in bcom_set_task_auto_start()
/kernel/linux/linux-6.6/include/linux/fsl/bestcomm/
H A Dbestcomm_priv.h335 bcom_set_task_auto_start(int task, int next_task) in bcom_set_task_auto_start() argument
338 out_be16(tcr, (in_be16(tcr) & ~0xff) | 0x00c0 | next_task); in bcom_set_task_auto_start()
/kernel/linux/linux-5.10/arch/ia64/include/asm/
H A Dswitch_to.h29 extern struct task_struct *ia64_switch_to (void *next_task);
H A Dmmu_context.h197 #define switch_mm(prev_mm,next_mm,next_task) activate_mm(prev_mm, next_mm)
/kernel/linux/linux-6.6/arch/ia64/include/asm/
H A Dswitch_to.h29 extern struct task_struct *ia64_switch_to (void *next_task);
H A Dmmu_context.h189 #define switch_mm(prev_mm,next_mm,next_task) activate_mm(prev_mm, next_mm)
/kernel/linux/linux-5.10/drivers/mailbox/
H A Dmtk-cmdq-mailbox.c200 struct cmdq_task *next_task; in cmdq_task_handle_error() local
205 next_task = list_first_entry_or_null(&thread->task_busy_list, in cmdq_task_handle_error()
207 if (next_task) in cmdq_task_handle_error()
208 writel(next_task->pa_base >> cmdq->shift_pa, in cmdq_task_handle_error()
/kernel/linux/linux-5.10/include/linux/sched/
H A Dsignal.h603 #define next_task(p) \ macro
607 for (p = &init_task ; (p = next_task(p)) != &init_task ; )
616 for (g = t = &init_task ; (g = t = next_task(g)) != &init_task ; ) do
/kernel/linux/linux-6.6/drivers/mailbox/
H A Dmtk-cmdq-mailbox.c226 struct cmdq_task *next_task; in cmdq_task_handle_error() local
231 next_task = list_first_entry_or_null(&thread->task_busy_list, in cmdq_task_handle_error()
233 if (next_task) in cmdq_task_handle_error()
234 writel(next_task->pa_base >> cmdq->pdata->shift, in cmdq_task_handle_error()
/kernel/linux/linux-6.6/include/linux/sched/
H A Dsignal.h643 #define next_task(p) \ macro
647 for (p = &init_task ; (p = next_task(p)) != &init_task ; )

Completed in 23 milliseconds