#ifndef _LINUX_SCHED_LOADAVG_H
#define _LINUX_SCHED_LOADAVG_H
extern unsigned long avenrun[];
extern void get_avenrun(unsigned long *loads, unsigned long offset, int shift);
#define FSHIFT …
#define FIXED_1 …
#define LOAD_FREQ …
#define EXP_1 …
#define EXP_5 …
#define EXP_15 …
static inline unsigned long
calc_load(unsigned long load, unsigned long exp, unsigned long active)
{ … }
extern unsigned long calc_load_n(unsigned long load, unsigned long exp,
unsigned long active, unsigned int n);
#define LOAD_INT(x) …
#define LOAD_FRAC(x) …
extern void calc_global_load(void);
#endif