Home
last modified time | relevance | path

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

/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/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.c330 pct *= FIXED_1; in calc_avgs()
/linux-6.6.21/fs/proc/
Dloadavg.c18 get_avenrun(avnrun, FIXED_1/200, 0); in loadavg_proc_show()
/linux-6.6.21/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-6.6.21/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()