Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:calc_avgs

Proto:static void calc_avgs(unsigned long avg[3], int missed_periods, u64 time, u64 period)

Type:void

Parameter:

TypeParameterName
unsigned longavg
intmissed_periods
u64time
u64period
288  If missed_periods Then
289  avg[0] = a1 = a0 * e + a * (1 - e)* a2 = a1 * e + a * (1 - e)* = (a0 * e + a * (1 - e)) * e + a * (1 - e)* = a0 * e^2 + a * (1 - e) * (1 + e)* a3 = a2 * e + a * (1 - e)* = (a0 * e^2 + a * (1 - e) * (1 + e)) * e + a * (1 - e)* = a0 * e^3 + a * (1 - e) * (1 + e +
290  avg[1] = a1 = a0 * e + a * (1 - e)* a2 = a1 * e + a * (1 - e)* = (a0 * e + a * (1 - e)) * e + a * (1 - e)* = a0 * e^2 + a * (1 - e) * (1 + e)* a3 = a2 * e + a * (1 - e)* = (a0 * e^2 + a * (1 - e) * (1 + e)) * e + a * (1 - e)* = a0 * e^3 + a * (1 - e) * (1 + e +
291  avg[2] = a1 = a0 * e + a * (1 - e)* a2 = a1 * e + a * (1 - e)* = (a0 * e + a * (1 - e)) * e + a * (1 - e)* = a0 * e^2 + a * (1 - e) * (1 + e)* a3 = a2 * e + a * (1 - e)* = (a0 * e^2 + a * (1 - e) * (1 + e)) * e + a * (1 - e)* = a0 * e^3 + a * (1 - e) * (1 + e +
295  pct = div_u64 - unsigned 64bit divide with 32bit divisor*@dividend: unsigned 64bit dividend*@divisor: unsigned 32bit divisor* This is the most common 64bit divide and should be used if possible,* as many 32bit archs can optimize this variant better than a full
296  pct *= 1.0 as fixed-point
297  avg[0] = a1 = a0 * e + a * (1 - e)
298  avg[1] = a1 = a0 * e + a * (1 - e)
299  avg[2] = a1 = a0 * e + a * (1 - e)
Caller
NameDescribe
update_averages