Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:35:48
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:to_ratio

Proto:unsigned long to_ratio(u64 period, u64 runtime)

Type:unsigned long

Parameter:

TypeParameterName
u64period
u64runtime
2924  If runtime == Single value that denotes runtime == period, ie unlimited time. Then Return BW_UNIT
2932  If period == 0 Then Return 0
2935  Return div64_u64 - unsigned 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor* This implementation is a modified version of the algorithm proposed* by the book 'Hacker's Delight'. The original source and full proof
Caller
NameDescribe
init_dl_bw
sched_dl_global_validate
init_dl_rq_bw_ratio
sched_dl_do_global
sched_dl_overflowWe must be sure that accepting a new task (or allowing changing the* parameters of an existing one) is consistent with the bandwidth* constraints. If yes, this function also accordingly updates the currently
__setparam_dlThis function initializes the sched_dl_entity of a newly becoming* SCHED_DEADLINE task.* Only the static values are considered here, the actual runtime and the* absolute deadline will be properly calculated when the task is enqueued