Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Calculate the expected normal priority: i.e. priority* without taking RT-inheritance into account. Might be* boosted by interactivity modifiers. Changes upon fork,* setprio syscalls, and whenever the interactivity* estimator recalculates.

Proto:static inline int normal_prio(struct task_struct *p)

Type:int

Parameter:

TypeParameterName
struct task_struct *p
1358  If task_has_dl_policy(p) Then prio = SCHED_DEADLINE tasks has negative priorities, reflecting* the fact that any of them has higher prio than RT and* NORMAL/BATCH tasks. - 1
1360  Else if task_has_rt_policy(p) Then prio = MAX_RT_PRIO - 1 - rt_priority
1362  Else prio = __normal_prio - return the priority that is based on the static prio
1364  Return prio
Caller
NameDescribe
effective_prioCalculate the current priority, i.e. the priority* taken into account by the scheduler. This value might* be boosted by RT tasks, or might be boosted by* interactivity modifiers. Will be RT if the task got* RT-boosted
__setscheduler_params
__setschedulerActually do priority change: must hold pi & rq lock.