Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/rmi initialize mutex in attach



details:   https://anonhg.NetBSD.org/src/rev/2bf323ade6c2
branches:  trunk
changeset: 764191:2bf323ade6c2
user:      cliff <cliff%NetBSD.org@localhost>
date:      Wed Apr 13 21:06:30 2011 +0000

description:
initialize mutex in attach

diffstat:

 sys/arch/mips/rmi/rmixl_pcix.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 07a8e1dbec25 -r 2bf323ade6c2 sys/arch/mips/rmi/rmixl_pcix.c
--- a/sys/arch/mips/rmi/rmixl_pcix.c    Wed Apr 13 19:16:44 2011 +0000
+++ b/sys/arch/mips/rmi/rmixl_pcix.c    Wed Apr 13 21:06:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rmixl_pcix.c,v 1.3 2011/04/04 20:37:52 dyoung Exp $    */
+/*     $NetBSD: rmixl_pcix.c,v 1.4 2011/04/13 21:06:30 cliff Exp $     */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rmixl_pcix.c,v 1.3 2011/04/04 20:37:52 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rmixl_pcix.c,v 1.4 2011/04/13 21:06:30 cliff Exp $");
 
 #include "opt_pci.h"
 #include "pci.h"
@@ -316,6 +316,8 @@
 
        aprint_normal(": RMI XLR PCI-X Interface\n");
 
+       mutex_init(&sc->sc_mutex, MUTEX_DEFAULT, IPL_HIGH);
+
        rmixl_pcix_intcfg(sc);
 
        rmixl_pcix_errata(sc);



Home | Main Index | Thread Index | Old Index