Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nathanw_sa]: src/sys/kern Minor SCHED_LOCK() paranoia.
details: https://anonhg.NetBSD.org/src/rev/4e68c40141e2
branches: nathanw_sa
changeset: 504828:4e68c40141e2
user: nathanw <nathanw%NetBSD.org@localhost>
date: Mon Jul 09 22:32:28 2001 +0000
description:
Minor SCHED_LOCK() paranoia.
diffstat:
sys/kern/kern_lwp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 59800a37fe60 -r 4e68c40141e2 sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c Mon Jul 09 22:31:55 2001 +0000
+++ b/sys/kern/kern_lwp.c Mon Jul 09 22:32:28 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lwp.c,v 1.1.2.1 2001/03/05 22:49:40 nathanw Exp $ */
+/* $NetBSD: kern_lwp.c,v 1.1.2.2 2001/07/09 22:32:28 nathanw Exp $ */
#include <sys/param.h>
#include <sys/systm.h>
@@ -143,8 +143,8 @@
case LSRUN:
SCHED_LOCK(s);
remrunqueue(t);
+ t->l_stat = LSSUSPENDED;
SCHED_UNLOCK(s);
- t->l_stat = LSSUSPENDED;
simple_lock(&p->p_lwplock);
p->p_nrlwps--;
simple_unlock(&p->p_lwplock);
Home |
Main Index |
Thread Index |
Old Index