Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__accumulate_pelt_segments

Proto:static unsigned int __accumulate_pelt_segments(u64 periods, unsigned int d1, unsigned int d3)

Type:unsigned int

Parameter:

TypeParameterName
u64periods
unsigned intd1
unsigned intd3
65  c3 = d3
70  c1 = Approximate:* val * y^n, where y^32 ~= 0.5 (~1 scheduling period)
81  c2 = LOAD_AVG_MAX - Approximate:* val * y^n, where y^32 ~= 0.5 (~1 scheduling period) - 1024
83  Return c1 + c2 + c3
Caller
NameDescribe
accumulate_sumAccumulate the three separate parts of the sum; d1 the remainder* of the last (incomplete) period, d2 the span of full periods and d3* the remainder of the (incomplete) current period.* d1 d2 d3* ^ ^ ^* | | |* |<->|<----------------->|<--->|*