Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\fair.c Create Date:2022-07-28 09:38:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Priority of the task has changed. Check to see if we preempt* the current task.

Proto:static void prio_changed_fair(struct rq *rq, struct task_struct *p, int oldprio)

Type:void

Parameter:

TypeParameterName
struct rq *rq
struct task_struct *p
intoldprio
10336  If Not task_on_rq_queued(p) Then Return
10344  If curr == p Then
10345  If prio > oldprio Then sched_curr - mark rq's current task 'to be rescheduled now'.* On UP this means the setting of the need_resched flag, on SMP it* might also involve a cross-CPU call to trigger the scheduler on* the target CPU.
10347  Else check_preempt_curr(rq, p, 0)