函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alc_load - update the avenrun load estimates 10 ticks after the* CPUs have updated calc_load_tasks.* Called from the global timer code.

函数原型:void calc_global_load(unsigned long ticks)

返回类型:void

参数:

类型参数名称
unsigned longticks
355  sample_window等于READ_ONCE(calc_load_update)
356  如果time_before(jiffies, sample_window + 10)则返回
362  delta等于calc_load_nohz_read()
363  如果deltaatomic_long_add(delta, & Variables and functions for calc_load )
366  active等于atomic_long_read( & Variables and functions for calc_load )
367  active等于如果active大于0则active1.0 as fixed-point 否则0
369  avenrun[0]等于a1 = a0 * e + a * (1 - e)
370  avenrun[1]等于a1 = a0 * e + a * (1 - e)
371  avenrun[2]等于a1 = a0 * e + a * (1 - e)
373  WRITE_ONCE(calc_load_update, sample_window + 5 sec intervals )
379  calc_global_nohz()
调用者
名称描述
do_timer更新 jiffies计数