From: Bill Joy Date: Mon, 16 Feb 1981 12:24:21 +0000 (-0800) Subject: new ast stuff X-Git-Tag: BSD-4_1_snap-Snapshot-Development~2278 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/534d9295ee359d1bd507513067a4b924d8c7cd25 new ast stuff SCCS-vsn: sys/kern/kern_synch.c 4.5 --- diff --git a/usr/src/sys/kern/kern_synch.c b/usr/src/sys/kern/kern_synch.c index c1702cd785..9b2a853f78 100644 --- a/usr/src/sys/kern/kern_synch.c +++ b/usr/src/sys/kern/kern_synch.c @@ -1,4 +1,4 @@ -/* kern_synch.c 4.4 %G% */ +/* kern_synch.c 4.5 %G% */ #include "../h/param.h" #include "../h/systm.h" @@ -10,7 +10,7 @@ #include "../h/vm.h" #include "../h/pte.h" #include "../h/inline.h" - +#include "../h/mtpr.h" #define SQSIZE 0100 /* Must be power of 2 */ #define HASH(x) (( (int) x >> 5) & (SQSIZE-1)) @@ -179,8 +179,10 @@ restart: setrq(p); #endif } - if(p->p_pri < curpri) + if(p->p_pri < curpri) { runrun++; + aston(); + } if(runout != 0 && (p->p_flag&SLOAD) == 0) { runout = 0; wakeup((caddr_t)&runout); @@ -239,8 +241,10 @@ register struct proc *p; if (p->p_flag & SLOAD) setrq(p); splx(s); - if(p->p_pri < curpri) + if(p->p_pri < curpri) { runrun++; + aston(); + } if(runout != 0 && (p->p_flag&SLOAD) == 0) { runout = 0; wakeup((caddr_t)&runout);