setrunqueue

This commit is contained in:
deraadt 1994-05-13 20:12:59 +00:00
parent 3e146c5133
commit ec27b31bb6
2 changed files with 6 additions and 5 deletions

View File

@ -42,7 +42,7 @@
* @(#)locore2.c 8.1 (Berkeley) 6/11/93
*
* from: Header: locore2.c,v 1.8 92/11/26 03:05:01 mccanne Exp (LBL)
* $Id: locore2.c,v 1.2 1994/05/05 09:57:15 deraadt Exp $
* $Id: locore2.c,v 1.3 1994/05/13 20:12:59 deraadt Exp $
*/
/*
@ -60,7 +60,8 @@ int whichqs;
* Put process p on the run queue indicated by its priority.
* Calls should be made at splstatclock(), and p->p_stat should be SRUN.
*/
setrq(p)
void
setrunqueue(p)
register struct proc *p;
{
register struct prochd *q;

View File

@ -43,7 +43,7 @@
* @(#)trap.c 8.1 (Berkeley) 6/16/93
*
* from: Header: trap.c,v 1.34 93/05/28 04:34:50 torek Exp
* $Id: trap.c,v 1.16 1994/05/07 05:08:38 deraadt Exp $
* $Id: trap.c,v 1.17 1994/05/13 20:13:00 deraadt Exp $
*/
#include <sys/param.h>
@ -182,8 +182,8 @@ userret(struct proc *p, int pc, u_quad_t oticks)
* but before we switched, we might not be on the queue
* indicated by our priority.
*/
(void) splclock();
setrq(p);
(void) splstatclock();
setrunqueue(p);
p->p_stats->p_ru.ru_nivcsw++;
swtch();
(void) spl0();