Function report |
Source Code:kernel\sched\loadavg.c |
Create Date:2022-07-28 09:37:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:calc_load_fold_active
Proto:long calc_load_fold_active(struct rq *this_rq, long adjust)
Type:long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct rq * | this_rq | |
| long | adjust |
| 81 | delta = 0 |
| 83 | nr_active = * nr_running and cpu_load should be in the same cacheline because * remote CPUs use both these fields when doing load calculation. - adjust |
| 86 | If nr_active != calc_load_active Then |
| 87 | delta = nr_active - calc_load_active |
| 91 | Return delta |
| Name | Describe |
|---|---|
| calc_global_load_tick | Called from scheduler_tick() to periodically update this CPU's* active count. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |