Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Task is being enqueued - update stats:

Proto:static inline void update_stats_enqueue(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
996  If Not schedstat_enabled() Then Return
1003  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 update_stats_wait_start(cfs_rq, se)
1006  If flags & ENQUEUE_WAKEUP Then update_stats_enqueue_sleeper(cfs_rq, se)
Caller
NameDescribe
enqueue_entityMIGRATION* dequeue* update_curr()* update_min_vruntime()* vruntime -= min_vruntime* enqueue* update_curr()* update_min_vruntime()* vruntime += min_vruntime* this way the vruntime transition between RQs is done when both* min_vruntime are up-to-date