Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
unsigned long | ticks |
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 ) |
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) |
379 | calc_global_nohz() |
Name | Describe |
---|---|
do_timer | Must hold jiffies_lock |
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 |