/* calc_load - update the avenrun load estimates 10 ticks after the CPUs have updated calc_load_tasks.  */
void calc_global_load(void)
/* calc_load - update the avenrun load estimates 10 ticks after the CPUs have updated calc_load_tasks.  */
void calc_global_load(void)
{
	unsigned long upd = calc_load_update + 10;
	long active;
	if (time_before(jiffies, upd))
		return;
	active = atomic_long_read(&calc_load_tasks);
	active = active > 0 ? active * FIXED_1 : 0;
	avenrun[0] = calc_load(avenrun[0], EXP_1, active);
	avenrun[1] = calc_load(avenrun[1], EXP_5, active);
	avenrun[2] = calc_load(avenrun[2], EXP_15, active);
	calc_load_update += LOAD_FREQ;
}