Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt Use MUTEX_DEFAULT to avoid confusion



details:   https://anonhg.NetBSD.org/src/rev/01b2a700f6a5
branches:  trunk
changeset: 745630:01b2a700f6a5
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Mar 08 08:25:36 2020 +0000

description:
Use MUTEX_DEFAULT to avoid confusion

diffstat:

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

diffs (27 lines):

diff -r a8af53566ac1 -r 01b2a700f6a5 sys/dev/fdt/fdt_intr.c
--- a/sys/dev/fdt/fdt_intr.c    Sun Mar 08 06:44:26 2020 +0000
+++ b/sys/dev/fdt/fdt_intr.c    Sun Mar 08 08:25:36 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_intr.c,v 1.25 2020/02/16 20:28:18 thorpej Exp $ */
+/* $NetBSD: fdt_intr.c,v 1.26 2020/03/08 08:25:36 skrll Exp $ */
 
 /*-
  * Copyright (c) 2015-2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_intr.c,v 1.25 2020/02/16 20:28:18 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_intr.c,v 1.26 2020/03/08 08:25:36 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -73,7 +73,7 @@
 fdtbus_intr_init(void)
 {
 
-       mutex_init(&fdtbus_interrupt_cookie_mutex, MUTEX_SPIN, IPL_HIGH);
+       mutex_init(&fdtbus_interrupt_cookie_mutex, MUTEX_DEFAULT, IPL_HIGH);
        cv_init(&fdtbus_interrupt_cookie_wait, "fdtintr");
 }
 



Home | Main Index | Thread Index | Old Index