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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17989

View file

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)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"
@ -196,7 +196,7 @@ schedcpu(arg)
*/
if (p->p_slptime > 1)
continue;
s = splstatclock(); /* prevent state changes */
s = splhigh(); /* prevent state changes and protect run queue */
/*
* p_pctcpu is only for ps.
*/