Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Remove an extra mutex_spin_exit() in yds_resume().



details:   https://anonhg.NetBSD.org/src/rev/80f8618338f3
branches:  trunk
changeset: 959261:80f8618338f3
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Feb 06 12:59:13 2021 +0000

description:
Remove an extra mutex_spin_exit() in yds_resume().
This one has been moved to before yds_init() in rev 1.59.

diffstat:

 sys/dev/pci/yds.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 16357f74a4ac -r 80f8618338f3 sys/dev/pci/yds.c
--- a/sys/dev/pci/yds.c Sat Feb 06 12:55:34 2021 +0000
+++ b/sys/dev/pci/yds.c Sat Feb 06 12:59:13 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: yds.c,v 1.65 2020/02/29 05:51:11 isaki Exp $   */
+/*     $NetBSD: yds.c,v 1.66 2021/02/06 12:59:13 isaki Exp $   */
 
 /*
  * Copyright (c) 2000, 2001 Kazuki Sakamoto and Minoura Makoto.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: yds.c,v 1.65 2020/02/29 05:51:11 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: yds.c,v 1.66 2021/02/06 12:59:13 isaki Exp $");
 
 #include "mpu.h"
 
@@ -725,7 +725,6 @@
 
        pci_conf_write(pc, tag, YDS_PCI_DSCTRL, sc->sc_dsctrl);
        sc->sc_enabled = 1;
-       mutex_spin_exit(&sc->sc_intr_lock);
        sc->sc_codec[0].codec_if->vtbl->restore_ports(sc->sc_codec[0].codec_if);
        mutex_exit(&sc->sc_lock);
 



Home | Main Index | Thread Index | Old Index