函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:calc_load_fold_active

函数原型:long calc_load_fold_active(struct rq *this_rq, long adjust)

返回类型:long

参数:

类型参数名称
struct rq *this_rq
longadjust
81  delta等于0
83  nr_active等于可运行进程数adjust
84  nr_active加等于* This is part of a global counter where only the total sum * over all CPUs matters. A task can increase this counter on * one CPU and if it got migrated afterwards it may decrease * it on another CPU. Always updated under the runqueue lock:
86  如果nr_active不等于calc_load_active
87  delta等于nr_activecalc_load_active
88  calc_load_active等于nr_active
91  返回:delta
调用者
名称描述
calc_global_load_tickCalled from scheduler_tick() to periodically update this CPU's* active count.