Change an splstatclock that should be an splhigh into an splhigh.

Reviewed by:	bde
This commit is contained in:
David Greenman 1996-09-01 10:30:33 +00:00
parent 8a8c5e4e92
commit 09c75661de

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)kern_synch.c 8.9 (Berkeley) 5/19/95 * @(#)kern_synch.c 8.9 (Berkeley) 5/19/95
* $Id: kern_synch.c,v 1.22 1996/07/31 10:35:47 davidg Exp $ * $Id: kern_synch.c,v 1.23 1996/08/28 18:36:30 bde Exp $
*/ */
#include "opt_ktrace.h" #include "opt_ktrace.h"
@ -196,7 +196,7 @@ schedcpu(arg)
*/ */
if (p->p_slptime > 1) if (p->p_slptime > 1)
continue; continue;
s = splstatclock(); /* prevent state changes */ s = splhigh(); /* prevent state changes and protect run queue */
/* /*
* p_pctcpu is only for ps. * p_pctcpu is only for ps.
*/ */