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:update_stats_dequeue

Proto:static inline void update_stats_dequeue(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
1014  If Not schedstat_enabled() Then Return
1021  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_end(cfs_rq, se)
1024  If 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 && entity_is_task(se) Then
1025  tsk = CFS operations on generic schedulable entities:
1027  If run state & TASK_INTERRUPTIBLE Then __schedstat_set(sleep_start, rq_clock(rq_of(cfs_rq)))
1030  If run state & TASK_UNINTERRUPTIBLE Then __schedstat_set(block_start, rq_clock(rq_of(cfs_rq)))
Caller
NameDescribe
dequeue_entity