Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_synch.c
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
static fixpt_t cexp[3] = { | static fixpt_t cexp[3] = { | ||||
0.9200444146293232 * FSCALE, /* exp(-1/12) */ | 0.9200444146293232 * FSCALE, /* exp(-1/12) */ | ||||
0.9834714538216174 * FSCALE, /* exp(-1/60) */ | 0.9834714538216174 * FSCALE, /* exp(-1/60) */ | ||||
0.9944598480048967 * FSCALE, /* exp(-1/180) */ | 0.9944598480048967 * FSCALE, /* exp(-1/180) */ | ||||
}; | }; | ||||
/* kernel uses `FSCALE', userland (SHOULD) use kern.fscale */ | /* kernel uses `FSCALE', userland (SHOULD) use kern.fscale */ | ||||
SYSCTL_INT(_kern, OID_AUTO, fscale, CTLFLAG_RD, SYSCTL_NULL_INT_PTR, FSCALE, ""); | SYSCTL_INT(_kern, OID_AUTO, fscale, CTLFLAG_RD, SYSCTL_NULL_INT_PTR, FSCALE, | ||||
"Fixed-point scale factor"); | |||||
kaktus: Here too. | |||||
Not Done Inline ActionsMight be nice to say what it is used for? I think it might be the scaling factor used for load average values, but haven't looked to see how userland (e.g. top or ps) uses this. jhb: Might be nice to say what it is used for? I think it might be the scaling factor used for load… | |||||
static void loadav(void *arg); | static void loadav(void *arg); | ||||
SDT_PROVIDER_DECLARE(sched); | SDT_PROVIDER_DECLARE(sched); | ||||
SDT_PROBE_DEFINE(sched, , , preempt); | SDT_PROBE_DEFINE(sched, , , preempt); | ||||
static void | static void | ||||
sleepinit(void *unused) | sleepinit(void *unused) | ||||
▲ Show 20 Lines • Show All 569 Lines • Show Last 20 Lines |
Here too.