Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Per my comment earlier in the file, we only need to...



details:   https://anonhg.NetBSD.org/src/rev/cbd793a61164
branches:  trunk
changeset: 480485:cbd793a61164
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jan 13 21:55:36 2000 +0000

description:
Per my comment earlier in the file, we only need to go do splsoftclock()
when write-locking the proclist; splstatclock() is a wee bit overkill.

diffstat:

 sys/kern/kern_proc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 6fcd52781896 -r cbd793a61164 sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c      Thu Jan 13 20:19:43 2000 +0000
+++ b/sys/kern/kern_proc.c      Thu Jan 13 21:55:36 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_proc.c,v 1.35 1999/09/28 14:47:03 bouyer Exp $    */
+/*     $NetBSD: kern_proc.c,v 1.36 2000/01/13 21:55:36 thorpej Exp $   */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -202,7 +202,7 @@
 {
        int error, s;
 
-       s = splstatclock();
+       s = splsoftclock();
        error = spinlockmgr(&proclist_lock, LK_SHARED, NULL);
 #ifdef DIAGNOSTIC
        if (error)
@@ -219,7 +219,7 @@
 {
        int s;
 
-       s = splstatclock();
+       s = splsoftclock();
        (void) spinlockmgr(&proclist_lock, LK_RELEASE, NULL);
        splx(s);
 }
@@ -232,7 +232,7 @@
 {
        int error, s;
 
-       s = splstatclock();
+       s = splsoftclock();
        error = spinlockmgr(&proclist_lock, LK_EXCLUSIVE, NULL);
 #ifdef DIAGNOSTIC
        if (error != 0)



Home | Main Index | Thread Index | Old Index