/usr/src/kernels/4.18.0-553.157.1.el8_10.x86_64/include/linux/sched
NameSizeModeActions
autogroup.h12290644editdlrm
clock.h25060644editdlrm
coredump.h32410644editdlrm
cpufreq.h9100644editdlrm
cputime.h53490644editdlrm
deadline.h6520644editdlrm
debug.h14390644editdlrm
hotplug.h6640644editdlrm
idle.h18900644editdlrm
init.h2400644editdlrm
isolation.h18230644editdlrm
jobctl.h17520644editdlrm
loadavg.h15880644editdlrm
mm.h126970644editdlrm
nohz.h9070644editdlrm
numa_balancing.h12920644editdlrm
prio.h17540644editdlrm
rt.h12590644editdlrm
signal.h211120644editdlrm
smt.h4150644editdlrm
stat.h9670644editdlrm
sysctl.h28600644editdlrm
task.h54780644editdlrm
task_stack.h30530644editdlrm
topology.h70710644editdlrm
types.h6830644editdlrm
user.h20490644editdlrm
wake_q.h22720644editdlrm
xacct.h8540644editdlrm
Edit: /usr/src/kernels/4.18.0-553.157.1.el8_10.x86_64/include/linux/sched/loadavg.h (1588B)
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_SCHED_LOADAVG_H #define _LINUX_SCHED_LOADAVG_H /* * These are the constant used to fake the fixed-point load-average * counting. Some notes: * - 11 bit fractions expand to 22 bits by the multiplies: this gives * a load-average precision of 10 bits integer + 11 bits fractional * - if you want to count load-averages more often, you need more * precision, or rounding will get you. With 2-second counting freq, * the EXP_n values would be 1981, 2034 and 2043 if still using only * 11 bit fractions. */ extern unsigned long avenrun[]; /* Load averages */ extern void get_avenrun(unsigned long *loads, unsigned long offset, int shift); #define FSHIFT 11 /* nr of bits of precision */ #define FIXED_1 (1<= load) newload += FIXED_1-1; return newload / FIXED_1; } extern unsigned long calc_load_n(unsigned long load, unsigned long exp, unsigned long active, unsigned int n); #define LOAD_INT(x) ((x) >> FSHIFT) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) extern void calc_global_load(void); #endif /* _LINUX_SCHED_LOADAVG_H */