Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dequeue_entity

Proto:static void dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags)

Type:void

Parameter:

TypeParameterName
struct cfs_rq *cfs_rq
struct sched_entity *se
intflags
4083  Update the current task's runtime statistics.
4093  update_load_avg(cfs_rq, se, UPDATE_TG)
4094  dequeue_runnable_load_avg(cfs_rq, se)
4096  update_stats_dequeue(cfs_rq, se, flags)
4098  clear_buddies(cfs_rq, se)
4100  If se != 'curr' points to currently running entity on this cfs_rq.* It is set to NULL otherwise (i.e when none are currently running). Then __dequeue_entity(cfs_rq, se)
4102  on_rq = 0
4103  account_entity_dequeue(cfs_rq, se)
4111  If Not (flags & {de,en}queue flags:* DEQUEUE_SLEEP - task is no longer runnable* ENQUEUE_WAKEUP - task just became runnable* SAVE/RESTORE - an otherwise spurious dequeue/enqueue, done to ensure tasks* are in a known state which allows modification. Such pairs) Then vruntime -= min_vruntime
4115  return_cfs_rq_runtime(cfs_rq)
4117  update_cfs_group(se)
4125  If (flags & (Matches ENQUEUE_RESTORE | Matches ENQUEUE_MOVE )) != Matches ENQUEUE_RESTORE Then update_min_vruntime(cfs_rq)
Caller
NameDescribe
dequeue_task_fairThe dequeue_task method is called before nr_running is* decreased. We remove the task from the rbtree and* update the fair scheduling stats: