Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/kern XXX - temporarily disable kernel lock spinout...



details:   https://anonhg.NetBSD.org/src-all/rev/3d1f27f2c0cc
branches:  trunk
changeset: 949532:3d1f27f2c0cc
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Mon Jul 06 20:02:05 2020 +0200

description:
XXX - temporarily disable kernel lock spinout code.
Revert this before merging!

diffstat:

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

diffs (21 lines):

diff -r 49150e79defd -r 3d1f27f2c0cc sys/kern/kern_lock.c
--- a/sys/kern/kern_lock.c      Sun Jul 05 19:00:33 2020 +0200
+++ b/sys/kern/kern_lock.c      Mon Jul 06 20:02:05 2020 +0200
@@ -177,7 +177,7 @@
        LOCKSTAT_TIMER(spintime);
        LOCKSTAT_FLAG(lsflag);
        struct lwp *owant;
-#ifdef LOCKDEBUG
+#if 0 // def LOCKDEBUG
        u_int spins = 0;
 #endif
        int s;
@@ -233,7 +233,7 @@
        do {
                splx(s);
                while (__SIMPLELOCK_LOCKED_P(kernel_lock)) {
-#ifdef LOCKDEBUG
+#if 0 // def LOCKDEBUG
                        if (SPINLOCK_SPINOUT(spins)) {
                                extern int start_init_exec;
                                if (start_init_exec)



Home | Main Index | Thread Index | Old Index