1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-09 09:40:42 +00:00

Removed all traces of P_IDLEPROC. It was tested but never set.

This commit is contained in:
Bruce Evans 1997-11-24 15:15:33 +00:00
parent 5270ecea67
commit b672aa4ba6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31393
5 changed files with 8 additions and 11 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
* $Id: kern_clock.c,v 1.43 1997/11/07 08:52:54 phk Exp $
* $Id: kern_clock.c,v 1.44 1997/11/18 12:24:22 bde Exp $
*/
/* Portions of this software are covered by the following: */
@ -1015,7 +1015,7 @@ statclock(frame)
if (p != NULL)
p->p_iticks++;
cp_time[CP_INTR]++;
} else if (p != NULL && !(p->p_flag & P_IDLEPROC)) {
} else if (p != NULL) {
p->p_sticks++;
cp_time[CP_SYS]++;
} else

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
* $Id: kern_clock.c,v 1.43 1997/11/07 08:52:54 phk Exp $
* $Id: kern_clock.c,v 1.44 1997/11/18 12:24:22 bde Exp $
*/
/* Portions of this software are covered by the following: */
@ -1015,7 +1015,7 @@ statclock(frame)
if (p != NULL)
p->p_iticks++;
cp_time[CP_INTR]++;
} else if (p != NULL && !(p->p_flag & P_IDLEPROC)) {
} else if (p != NULL) {
p->p_sticks++;
cp_time[CP_SYS]++;
} else

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
* $Id: kern_clock.c,v 1.43 1997/11/07 08:52:54 phk Exp $
* $Id: kern_clock.c,v 1.44 1997/11/18 12:24:22 bde Exp $
*/
/* Portions of this software are covered by the following: */
@ -1015,7 +1015,7 @@ statclock(frame)
if (p != NULL)
p->p_iticks++;
cp_time[CP_INTR]++;
} else if (p != NULL && !(p->p_flag & P_IDLEPROC)) {
} else if (p != NULL) {
p->p_sticks++;
cp_time[CP_SYS]++;
} else

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)proc.h 8.15 (Berkeley) 5/19/95
* $Id: proc.h,v 1.46 1997/11/06 19:29:45 phk Exp $
* $Id: proc.h,v 1.47 1997/11/21 11:37:02 bde Exp $
*/
#ifndef _SYS_PROC_H_
@ -225,7 +225,6 @@ struct proc {
#define P_SWAPPING 0x40000 /* Process is being swapped. */
#define P_SWAPINREQ 0x80000 /* Swapin request due to wakeup */
#define P_IDLEPROC 0x100000 /* Process is an idle-eater, don't count */
/* Marked a kernel thread */
#define P_KTHREADP 0x200000 /* Process is really a kernel thread */

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)vm_meter.c 8.4 (Berkeley) 1/4/94
* $Id: vm_meter.c,v 1.21 1997/04/26 11:46:24 peter Exp $
* $Id: vm_meter.c,v 1.22 1997/09/01 03:17:19 bde Exp $
*/
#include <sys/param.h>
@ -77,8 +77,6 @@ loadav(struct loadavg *avg)
register struct proc *p;
for (nrun = 0, p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
if (p->p_flag & P_IDLEPROC)
continue;
switch (p->p_stat) {
case SSLEEP:
if (p->p_priority > PZERO || p->p_slptime != 0)