函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\deadline.c Create Date:2022-07-27 10:40:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This function implements the GRUB accounting rule:* according to the GRUB reclaiming algorithm, the runtime is* not decreased as "dq = -dt", but as* "dq = -max{u / Umax, (1 - Uinact - Uextra)} dt",* where u is the utilization of the task, Umax is the

函数原型:static u64 grub_reclaim(u64 delta, struct rq *rq, struct sched_dl_entity *dl_se)

返回类型:u64

参数:

类型参数名称
u64delta
struct rq *rq
struct sched_dl_entity *dl_se
1155  u_inact等于Utilization of the tasks "assigned" to this runqueue (including* the tasks that are in runqueue and the tasks that executed on this* CPU and blocked)"Active utilization" for this runqueue: increased when a* task wakes up (becomes TASK_RUNNING) and decreased when a* task blocks
1157  u_act_min等于 dl_runtime / dl_period Inverse of the fraction of CPU utilization that can be reclaimed* by the GRUB algorithm.右移RATIO_SHIFT
1167  如果u_inactextra_bw大于BW_UNITu_act_minu_act等于u_act_min
1169  否则u_act等于BW_UNITu_inactextra_bw
1172  返回:deltau_act右移BW_SHIFT
调用者
名称描述
update_curr_dlUpdate the current task's runtime statistics (provided it is still* a -deadline task and has not been removed from the dl_rq).