Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Back out rev 1.36... what was I thinking? Also, up...
details: https://anonhg.NetBSD.org/src/rev/6bd5918da0b2
branches: trunk
changeset: 480885:6bd5918da0b2
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Jan 22 16:32:02 2000 +0000
description:
Back out rev 1.36... what was I thinking? Also, update the comment that
led me astray to reflect reality.
diffstat:
sys/kern/kern_proc.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (48 lines):
diff -r 07d997bb2af7 -r 6bd5918da0b2 sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c Sat Jan 22 15:10:35 2000 +0000
+++ b/sys/kern/kern_proc.c Sat Jan 22 16:32:02 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_proc.c,v 1.36 2000/01/13 21:55:36 thorpej Exp $ */
+/* $NetBSD: kern_proc.c,v 1.37 2000/01/22 16:32:02 thorpej Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -119,8 +119,9 @@
*
* We have two types of locks on the proclists: read locks and write
* locks. Read locks can be used in interrupt context, so while we
- * hold the write lock, we must also block softclock interrupts (since
- * the interrupt context is the timeout-driven schedcpu()).
+ * hold the write lock, we must also block statclock interrupts to
+ * lock out any scheduling changes that may happen in interrupt
+ * context.
*
* The proclist lock locks the following structures:
*
@@ -202,7 +203,7 @@
{
int error, s;
- s = splsoftclock();
+ s = splstatclock();
error = spinlockmgr(&proclist_lock, LK_SHARED, NULL);
#ifdef DIAGNOSTIC
if (error)
@@ -219,7 +220,7 @@
{
int s;
- s = splsoftclock();
+ s = splstatclock();
(void) spinlockmgr(&proclist_lock, LK_RELEASE, NULL);
splx(s);
}
@@ -232,7 +233,7 @@
{
int error, s;
- s = splsoftclock();
+ s = splstatclock();
error = spinlockmgr(&proclist_lock, LK_EXCLUSIVE, NULL);
#ifdef DIAGNOSTIC
if (error != 0)
Home |
Main Index |
Thread Index |
Old Index