Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__update_inv_weight

Proto:static void __update_inv_weight(struct load_weight *lw)

Type:void

Parameter:

TypeParameterName
struct load_weight *lw
193  If Value is more likely to compile time(inv_weight) Then Return
196  w = scale_load_down(weight)
198  If BITS_PER_LONG > 32 && Value for the false possibility is greater at compile time(w >= WMULT_CONST) Then inv_weight = 1
200  Else if Value for the false possibility is greater at compile time(!w) Then inv_weight = WMULT_CONST
202  Else inv_weight = WMULT_CONST / w
Caller
NameDescribe
__calc_deltadelta_exec * weight / lw.weight* OR* (delta_exec * (weight * lw->inv_weight)) >> WMULT_SHIFT* Either weight := NICE_0_LOAD and lw \e sched_prio_to_wmult[], in which case* we're guaranteed shift stays positive because inv_weight is guaranteed to