Searched refs:FSCALE (Results 1 - 12 of 12) sorted by relevance
/freebsd-11-stable/contrib/top/ |
H A D | loadavg.h | 16 * We assume that if FSCALE is defined, then avenrun and ccpu are type long. 24 # if defined(FBITS) && !defined(FSCALE) 25 # define FSCALE (1 << FBITS) /* RISC/os on mips */ macro 29 #ifdef FSCALE 30 # define FIXED_LOADAVG FSCALE 31 # define FIXED_PCTCPU FSCALE
|
/freebsd-11-stable/sys/kern/ |
H A D | kern_racct.c | 189 static const fixpt_t RACCT_DECAY_FACTOR = 0.3 * FSCALE; 195 * ccpu_exp[k] = FSCALE * (ccpu/FSCALE)^k = FSCALE * exp(-k/20) 200 [0] = FSCALE * 1, 201 [1] = FSCALE * 0.95122942450071400909, 202 [2] = FSCALE * 0.90483741803595957316, 203 [3] = FSCALE * 0.86070797642505780722, 204 [4] = FSCALE * 0.81873075307798185866, 205 [5] = FSCALE * 0.7788007830714048682 [all...] |
H A D | kern_synch.c | 79 { {0, 0, 0}, FSCALE }; /* load average, of runnable procs */ 85 0.9200444146293232 * FSCALE, /* exp(-1/12) */ 86 0.9834714538216174 * FSCALE, /* exp(-1/60) */ 87 0.9944598480048967 * FSCALE, /* exp(-1/180) */ 90 /* kernel uses `FSCALE', userland (SHOULD) use kern.fscale */ 91 SYSCTL_INT(_kern, OID_AUTO, fscale, CTLFLAG_RD, SYSCTL_NULL_INT_PTR, FSCALE, ""); 520 nrun * FSCALE * (FSCALE - cexp[i])) >> FSHIFT;
|
H A D | tty_info.c | 232 load = (averunnable.ldavg[0] * 100 + FSCALE / 2) >> FSHIFT; 292 pctcpu = (sched_pctcpu(td) * 10000 + FSCALE / 2) >> FSHIFT;
|
H A D | sched_4bsd.c | 431 #define decay_cpu(loadfac, cpu) (((loadfac) * (cpu)) / ((loadfac) + FSCALE)) 434 static fixpt_t ccpu = 0.95122942450071400909 * FSCALE; /* exp(-1/20) */ 513 ts->ts_pctcpu += ((FSCALE - ccpu) * 515 FSCALE / realstathz)) >> FSHIFT; 1597 delta = ((FSCALE - ccpu) * 1599 FSCALE / realstathz)) >> FSHIFT;
|
H A D | sched_ule.c | 2654 pctcpu = (FSCALE * ((FSCALE * rtick)/hz)) >> FSHIFT;
|
/freebsd-11-stable/include/rpcsvc/ |
H A D | rstat.x | 38 %#ifndef FSCALE 43 %#define FSCALE (1<<FSHIFT) 45 %#endif /* ndef FSCALE */ 82 int avenrun[3]; /* scaled by FSCALE */ 101 unsigned int avenrun[3];/* scaled by FSCALE */
|
/freebsd-11-stable/sys/dev/syscons/snake/ |
H A D | snake_saver.c | 59 #define LOAD_HIGH(ld) (((ld * 100 + FSCALE / 2) >> FSHIFT) / 100) 60 #define LOAD_LOW(ld) (((ld * 100 + FSCALE / 2) >> FSHIFT) % 100) 117 load = ((averunnable.ldavg[0] * 100 + FSCALE / 2) >> FSHIFT);
|
/freebsd-11-stable/usr.bin/rup/ |
H A D | rup.c | 45 #undef FSCALE macro 167 (double)host_stat->avenrun[0]/FSCALE, 168 (double)host_stat->avenrun[1]/FSCALE, 169 (double)host_stat->avenrun[2]/FSCALE);
|
/freebsd-11-stable/libexec/rpc.rstatd/ |
H A D | rstat_proc.c | 69 #undef FSCALE macro 99 #ifndef FSCALE 100 #define FSCALE (1 << 8) macro 212 stats_all.s2.avenrun[0] = avrun[0] * FSCALE; 213 stats_all.s2.avenrun[1] = avrun[1] * FSCALE; 214 stats_all.s2.avenrun[2] = avrun[2] * FSCALE;
|
/freebsd-11-stable/sys/sys/ |
H A D | param.h | 345 #define FSCALE (1<<FSHIFT) macro
|
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | conf.c | 1487 #ifndef FSCALE 1488 # define FSCALE (1 << FSHIFT) macro 1631 (int) (avenrun[0] + FSCALE/2) >> FSHIFT); 1632 return ((int) (avenrun[0] + FSCALE/2) >> FSHIFT); 1701 (int) (avenrun[0] + FSCALE/2) >> FSHIFT); 1702 return ((int) (avenrun[0] + FSCALE/2) >> FSHIFT); 1941 (int) (avenrun[0] + FSCALE/2) >> FSHIFT); 1942 return ((int) (avenrun[0] + FSCALE/2) >> FSHIFT); 1985 la = ((double) ksn->value.ul + FSCALE/2) / FSCALE; [all...] |
Completed in 268 milliseconds