Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/arch/sparc/dev Apply patch, requested by tsutsui in t...



details:   https://anonhg.NetBSD.org/src/rev/b9c664f325e5
branches:  netbsd-9
changeset: 954186:b9c664f325e5
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Mar 31 13:45:54 2021 +0000

description:
Apply patch, requested by tsutsui in ticket #1239:

        sys/arch/sparc/dev/audioamd.c   (apply patch)

Fix for PR 56078 (different solution applied to -current): fix wrong
lock usage.

diffstat:

 sys/arch/sparc/dev/audioamd.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r c43fc1239ef2 -r b9c664f325e5 sys/arch/sparc/dev/audioamd.c
--- a/sys/arch/sparc/dev/audioamd.c     Wed Mar 31 13:41:01 2021 +0000
+++ b/sys/arch/sparc/dev/audioamd.c     Wed Mar 31 13:45:54 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audioamd.c,v 1.29 2019/05/08 13:40:16 isaki Exp $      */
+/*     $NetBSD: audioamd.c,v 1.29.2.1 2021/03/31 13:45:54 martin Exp $ */
 /*     NetBSD: am7930_sparc.c,v 1.44 1999/03/14 22:29:00 jonathan Exp  */
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audioamd.c,v 1.29 2019/05/08 13:40:16 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audioamd.c,v 1.29.2.1 2021/03/31 13:45:54 martin Exp $");
 
 #include "audio.h"
 #if NAUDIO > 0
@@ -461,7 +461,7 @@
 
        au = &sc->sc_au;
 
-       mutex_spin_enter(&sc->sc_am7930.sc_lock);
+       mutex_spin_enter(&sc->sc_am7930.sc_intr_lock);
        if (au->au_rdata > au->au_rend && sc->sc_rintr != NULL) {
                (*sc->sc_rintr)(sc->sc_rarg);
        }
@@ -469,7 +469,7 @@
        if (pint)
                (*sc->sc_pintr)(sc->sc_parg);
 
-       mutex_spin_exit(&sc->sc_am7930.sc_lock);
+       mutex_spin_exit(&sc->sc_am7930.sc_intr_lock);
 }
 
 



Home | Main Index | Thread Index | Old Index