Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt Interrupt no longer needs kernel lock.



details:   https://anonhg.NetBSD.org/src/rev/6a986a603cbd
branches:  trunk
changeset: 1019365:6a986a603cbd
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Mon Mar 08 13:15:06 2021 +0000

description:
Interrupt no longer needs kernel lock.

diffstat:

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

diffs (27 lines):

diff -r 2662f1c6b7cc -r 6a986a603cbd sys/dev/fdt/genet_fdt.c
--- a/sys/dev/fdt/genet_fdt.c   Mon Mar 08 13:14:44 2021 +0000
+++ b/sys/dev/fdt/genet_fdt.c   Mon Mar 08 13:15:06 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genet_fdt.c,v 1.4 2021/01/27 03:10:21 thorpej Exp $ */
+/* $NetBSD: genet_fdt.c,v 1.5 2021/03/08 13:15:06 mlelstv Exp $ */
 
 /*-
  * Copyright (c) 2020 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_net_mpsafe.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genet_fdt.c,v 1.4 2021/01/27 03:10:21 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genet_fdt.c,v 1.5 2021/03/08 13:15:06 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -126,7 +126,7 @@
        if (genet_attach(sc) != 0)
                return;
 
-       ih = fdtbus_intr_establish_xname(phandle, 0, IPL_NET, FDT_INTR_FLAGS,
+       ih = fdtbus_intr_establish_xname(phandle, 0, IPL_NET, FDT_INTR_MPSAFE,
            genet_intr, sc, device_xname(self));
        if (ih == NULL) {
                aprint_error_dev(self, "couldn't establish interrupt on %s\n",



Home | Main Index | Thread Index | Old Index