Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/sys/compat/mach Pull up following revision(s) (requested ...
details: https://anonhg.NetBSD.org/src/rev/8e3775e09ac7
branches: netbsd-3
changeset: 577299:8e3775e09ac7
user: tron <tron%NetBSD.org@localhost>
date: Tue Oct 04 22:08:11 2005 +0000
description:
Pull up following revision(s) (requested by yamt in ticket #849):
sys/compat/mach/mach_thread.c: revision 1.35
protect p_nrlwps by sched_lock.
diffstat:
sys/compat/mach/mach_thread.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r f0db1a75a969 -r 8e3775e09ac7 sys/compat/mach/mach_thread.c
--- a/sys/compat/mach/mach_thread.c Tue Oct 04 22:05:12 2005 +0000
+++ b/sys/compat/mach/mach_thread.c Tue Oct 04 22:08:11 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mach_thread.c,v 1.34 2005/02/26 23:10:20 perry Exp $ */
+/* $NetBSD: mach_thread.c,v 1.34.2.1 2005/10/04 22:08:11 tron Exp $ */
/*-
* Copyright (c) 2002-2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_thread.c,v 1.34 2005/02/26 23:10:20 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_thread.c,v 1.34.2.1 2005/10/04 22:08:11 tron Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -232,10 +232,8 @@
mctc.mctc_lwp->l_private = 0;
mctc.mctc_lwp->l_stat = LSRUN;
setrunqueue(mctc.mctc_lwp);
+ p->p_nrlwps++;
SCHED_UNLOCK(s);
- simple_lock(&p->p_lock);
- p->p_nrlwps++;
- simple_unlock(&p->p_lock);
/*
* Get the child's kernel port
Home |
Main Index |
Thread Index |
Old Index