Home
last modified time | relevance | path

Searched refs:FIXED_1 (Results 1 – 8 of 8) sorted by relevance

/Linux-v6.1/include/linux/sched/
Dloadavg.h19 #define FIXED_1 (1<<FSHIFT) /* 1.0 as fixed-point */ macro
33 newload = load * exp + active * (FIXED_1 - exp); in calc_load()
35 newload += FIXED_1-1; in calc_load()
37 return newload / FIXED_1; in calc_load()
44 #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100)
/Linux-v6.1/arch/s390/appldata/
Dappldata_os.c104 os_data->avenrun[0] = avenrun[0] + (FIXED_1/200); in appldata_get_os_data()
105 os_data->avenrun[1] = avenrun[1] + (FIXED_1/200); in appldata_get_os_data()
106 os_data->avenrun[2] = avenrun[2] + (FIXED_1/200); in appldata_get_os_data()
/Linux-v6.1/arch/powerpc/platforms/cell/
Dcpufreq_spudemand.c39 info->busy_spus = calc_load(info->busy_spus, EXP, busy_spus * FIXED_1); in calc_freq()
43 return info->policy->max * info->busy_spus / FIXED_1; in calc_freq()
/Linux-v6.1/kernel/sched/
Dloadavg.c317 active = active > 0 ? active * FIXED_1 : 0; in calc_global_nohz()
366 active = active > 0 ? active * FIXED_1 : 0; in calc_global_load()
Dpsi.c299 pct *= FIXED_1; in calc_avgs()
/Linux-v6.1/fs/proc/
Dloadavg.c18 get_avenrun(avnrun, FIXED_1/200, 0); in loadavg_proc_show()
/Linux-v6.1/arch/powerpc/platforms/cell/spufs/
Dsched.c970 active_tasks = count_active_contexts() * FIXED_1; in spu_calc_load()
1060 a = spu_avenrun[0] + (FIXED_1/200); in show_spu_loadavg()
1061 b = spu_avenrun[1] + (FIXED_1/200); in show_spu_loadavg()
1062 c = spu_avenrun[2] + (FIXED_1/200); in show_spu_loadavg()
/Linux-v6.1/net/sched/
Dem_meta.c114 int rnd_load = load + (FIXED_1/200); in fixed_loadavg()
115 int rnd_frac = ((rnd_load & (FIXED_1-1)) * 100) >> FSHIFT; in fixed_loadavg()