Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:35:38
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_preempt_curr

Proto:void check_preempt_curr(struct rq *rq, struct task_struct *p, int flags)

Type:void

Parameter:

TypeParameterName
struct rq *rq
struct task_struct *p
intflags
1422  If sched_class == sched_class Then
1423  check_preempt_curr(rq, p, flags)
1424  Else
1426  If class == sched_class Then Break
1428  If class == sched_class Then
1439  If task_on_rq_queued(curr) && test_tsk_need_resched(curr) Then rq_clock_skip_update(rq)
Caller
NameDescribe
ttwu_do_wakeupMark the task runnable and perform wakeup-preemption.
wake_up_new_taskwake_up_new_task - wake up a newly created task for the first time.* This function will do some initial scheduler statistics housekeeping* that must be done for every newly created context, then puts the task* on the runqueue and wakes it.
prio_changed_fairPriority of the task has changed. Check to see if we preempt* the current task.
switched_to_fair