Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static void update_dl_entity(struct sched_dl_entity *dl_se, struct sched_dl_entity *pi_se)

Type:void

Parameter:

TypeParameterName
struct sched_dl_entity *dl_se
struct sched_dl_entity *pi_se
887  dl_rq = dl_rq_of_se(dl_se)
888  rq = rq_of_dl_rq(dl_rq)
890  If dl_time_before( Absolute deadline for this instance , rq_clock(rq)) || Here we check if --at time t-- an entity (which is probably being* [re]activated or, in general, enqueued) can use its remaining runtime* and its current deadline _without_ exceeding the bandwidth it is* assigned (function returns true if it can't) Then
897  Return
900  Absolute deadline for this instance = rq_clock(rq) + Relative deadline of each instance
901  Remaining runtime for this instance = Maximum runtime for each instance
Caller
NameDescribe
enqueue_dl_entity