Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:void calc_global_load(unsigned long ticks)

Type:void

Parameter:

TypeParameterName
unsigned longticks
355  sample_window = READ_ONCE(calc_load_update)
356  If time_before(jiffies, sample_window + 10) Then Return
362  delta = calc_load_nohz_read()
363  If delta Then atomic_long_add(delta, & Variables and functions for calc_load )
366  active = atomic_long_read( & Variables and functions for calc_load )
367  active = If active > 0 Then active * 1.0 as fixed-point Else 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()
Caller
NameDescribe
do_timerMust hold jiffies_lock