Source-Changes-HG archive

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

[src/trunk]: src/sys/dev sequencer(4): Don't use mutex_spin_exit on an IPL_NO...



details:   https://anonhg.NetBSD.org/src/rev/d06ed3de00a3
branches:  trunk
changeset: 364566:d06ed3de00a3
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Mar 29 09:19:56 2022 +0000

description:
sequencer(4): Don't use mutex_spin_exit on an IPL_NONE lock.

diffstat:

 sys/dev/sequencer.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b348d30fc07c -r d06ed3de00a3 sys/dev/sequencer.c
--- a/sys/dev/sequencer.c       Tue Mar 29 09:16:24 2022 +0000
+++ b/sys/dev/sequencer.c       Tue Mar 29 09:19:56 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sequencer.c,v 1.74 2021/09/26 01:16:08 thorpej Exp $   */
+/*     $NetBSD: sequencer.c,v 1.75 2022/03/29 09:19:56 riastradh Exp $ */
 
 /*
  * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -55,7 +55,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sequencer.c,v 1.74 2021/09/26 01:16:08 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sequencer.c,v 1.75 2022/03/29 09:19:56 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "sequencer.h"
@@ -414,7 +414,7 @@
 
        mutex_enter(&sc->lock);
        if (sc->timeout == 0) {
-               mutex_spin_exit(&sc->lock);
+               mutex_exit(&sc->lock);
                return;
        }
        sc->timeout = 0;



Home | Main Index | Thread Index | Old Index