diff options
author | jhb <jhb@FreeBSD.org> | 2000-09-15 22:00:23 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-09-15 22:00:23 +0000 |
commit | 6aa22e71891d9536cd38c52ba42d3cbab6267464 (patch) | |
tree | dd693b4affb488258dbfa957d5c9ac0e4b88080d /sys/kern/kern_idle.c | |
parent | 8b1e8bae5a48e043601dd80357287498f4a1289e (diff) | |
download | FreeBSD-src-6aa22e71891d9536cd38c52ba42d3cbab6267464.zip FreeBSD-src-6aa22e71891d9536cd38c52ba42d3cbab6267464.tar.gz |
- Add a new process flag P_NOLOAD that marks a process that should be
ignored during load average calcuations.
- Set this flag for the idle processes and the softinterrupt process.
Diffstat (limited to 'sys/kern/kern_idle.c')
-rw-r--r-- | sys/kern/kern_idle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_idle.c b/sys/kern/kern_idle.c index b7d7031..b6aa0c0 100644 --- a/sys/kern/kern_idle.c +++ b/sys/kern/kern_idle.c @@ -65,6 +65,7 @@ idle_setup(void *dummy) if (error) panic("idle_setup: kthread_create error %d\n", error); + gd->gd_idleproc->p_flag |= P_NOLOAD; gd->gd_idleproc->p_stat = SRUN; } } |