Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:enqueue_dl_entity

Proto:static void enqueue_dl_entity(struct sched_dl_entity *dl_se, struct sched_dl_entity *pi_se, int flags)

Type:void

Parameter:

TypeParameterName
struct sched_dl_entity *dl_se
struct sched_dl_entity *pi_se
intflags
1446  BUG_ON(on_dl_rq(dl_se))
1453  If flags & ENQUEUE_WAKEUP Then
1454  task_contending(dl_se, flags)
1455  When a deadline entity is placed in the runqueue, its runtime and deadline* might need to be updated. This is done by a CBS wake up rule. There are two* different rules: 1) the original CBS; and 2) the Revisited CBS.
1456  Else if flags & ENQUEUE_REPLENISH Then
1457  Pure Earliest Deadline First (EDF) scheduling does not deal with the* possibility of a entity lasting more than what it declared, and thus* exhausting its runtime
1458  Else if flags & ENQUEUE_RESTORE && dl_time_before( Absolute deadline for this instance , rq_clock(rq_of_dl_rq(dl_rq_of_se(dl_se)))) Then
1461  We are being explicitly informed that a new instance is starting,* and this means that:* - the absolute deadline of the entity has to be placed at* current time + relative deadline;* - the runtime of the entity has to be set to the maximum value
1464  __enqueue_dl_entity(dl_se)
Caller
NameDescribe
enqueue_task_dl