SCCS-vsn: sys/kern/kern_synch.c 7.15
- * Copyright (c) 1982, 1986, 1990 Regents of the University of California.
+ * Copyright (c) 1982, 1986, 1990, 1991 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)kern_synch.c 7.14 (Berkeley) %G%
+ * @(#)kern_synch.c 7.15 (Berkeley) %G%
*/
#include "param.h"
#include "systm.h"
*/
#include "param.h"
#include "systm.h"
#include "proc.h"
#include "kernel.h"
#include "buf.h"
#include "proc.h"
#include "kernel.h"
#include "buf.h"
+#include "signalvar.h"
+#include "resourcevar.h"
s = splhigh(); /* prevent state changes */
if (p->p_pri >= PUSER) {
#define PPQ (128 / NQS) /* priorities per queue */
s = splhigh(); /* prevent state changes */
if (p->p_pri >= PUSER) {
#define PPQ (128 / NQS) /* priorities per queue */
- if ((p != curproc || noproc) &&
p->p_stat == SRUN &&
(p->p_flag & SLOAD) &&
(p->p_pri / PPQ) != (p->p_usrpri / PPQ)) {
p->p_stat == SRUN &&
(p->p_flag & SLOAD) &&
(p->p_pri / PPQ) != (p->p_usrpri / PPQ)) {
- register struct proc *p = curproc; /* XXX */
+ register struct proc *p = curproc;
register struct slpque *qp;
register s;
int sig, catch = pri & PCATCH;
register struct slpque *qp;
register s;
int sig, catch = pri & PCATCH;
- register struct proc *p = curproc; /* XXX */
+ register struct proc *p = curproc;
register struct slpque *qp;
register s;
extern int cold;
register struct slpque *qp;
register s;
extern int cold;