Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:wakeup_preempt_entity

Proto:static int wakeup_preempt_entity(struct sched_entity *curr, struct sched_entity *se)

Type:int

Parameter:

TypeParameterName
struct sched_entity *curr
struct sched_entity *se
6518  vdiff = vruntime - vruntime
6520  If vdiff <= 0 Then Return -1
6523  gran = wakeup_gran(se)
6524  If vdiff > gran Then Return 1
6527  Return 0
Caller
NameDescribe
pick_next_entityPick the next process, keeping these things in mind, in this order:* 1) keep things fair between processes/task groups* 2) pick the "next" process, since someone really wants that to run* 3) pick the "last" process, for cache locality* 4) do not run the
check_preempt_wakeupPreempt the current task with a newly woken task if needed: