From a677de6b98a134d62d985a15d990a75c0b1b0c2e Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Tue, 15 Oct 2002 20:17:23 +0000 Subject: Protect p_priority with splstatclock. --- sys/kern/kern_synch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index cbae2829ff9..d2f08bed8f6 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_synch.c,v 1.45 2002/07/24 17:58:49 mickey Exp $ */ +/* $OpenBSD: kern_synch.c,v 1.46 2002/10/15 20:17:22 art Exp $ */ /* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */ /*- @@ -657,8 +657,8 @@ yield() struct proc *p = curproc; int s; - p->p_priority = p->p_usrpri; s = splstatclock(); + p->p_priority = p->p_usrpri; setrunqueue(p); p->p_stats->p_ru.ru_nvcsw++; mi_switch(); @@ -684,8 +684,8 @@ preempt(newp) if (newp != NULL) panic("preempt: cpu_preempt not yet implemented"); - p->p_priority = p->p_usrpri; s = splstatclock(); + p->p_priority = p->p_usrpri; setrunqueue(p); p->p_stats->p_ru.ru_nivcsw++; mi_switch(); -- cgit v1.2.3