Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Name the interrupt handler for intrctl



details:   https://anonhg.NetBSD.org/src/rev/34497ade146e
branches:  trunk
changeset: 811166:34497ade146e
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu Oct 15 02:40:38 2015 +0000

description:
Name the interrupt handler for intrctl

diffstat:

 sys/dev/pci/virtio.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 57d190072737 -r 34497ade146e sys/dev/pci/virtio.c
--- a/sys/dev/pci/virtio.c      Wed Oct 14 19:40:09 2015 +0000
+++ b/sys/dev/pci/virtio.c      Thu Oct 15 02:40:38 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: virtio.c,v 1.9 2015/05/05 10:58:35 ozaki-r Exp $       */
+/*     $NetBSD: virtio.c,v 1.10 2015/10/15 02:40:38 ozaki-r Exp $      */
 
 /*
  * Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.9 2015/05/05 10:58:35 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.10 2015/10/15 02:40:38 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -177,7 +177,8 @@
        if (sc->sc_flags & VIRTIO_F_PCI_INTR_MPSAFE)
                pci_intr_setattr(pc, &ih, PCI_INTR_MPSAFE, true);
 
-       sc->sc_ih = pci_intr_establish(pc, ih, sc->sc_ipl, virtio_intr, sc);
+       sc->sc_ih = pci_intr_establish_xname(pc, ih, sc->sc_ipl, virtio_intr, sc,
+           device_xname(sc->sc_dev));
 
        if (sc->sc_ih == NULL) {
                aprint_error_dev(self, "couldn't establish interrupt");



Home | Main Index | Thread Index | Old Index