artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f76743
)
Request deferred interrupt processing
author
mikeb
<mikeb@openbsd.org>
Fri, 23 Jun 2017 19:07:13 +0000
(19:07 +0000)
committer
mikeb
<mikeb@openbsd.org>
Fri, 23 Jun 2017 19:07:13 +0000
(19:07 +0000)
sys/dev/pv/hvs.c
patch
|
blob
|
history
diff --git
a/sys/dev/pv/hvs.c
b/sys/dev/pv/hvs.c
index
5acac16
..
02b731f
100644
(file)
--- a/
sys/dev/pv/hvs.c
+++ b/
sys/dev/pv/hvs.c
@@
-275,6
+275,11
@@
hvs_attach(struct device *parent, struct device *self, void *aux)
if (strcmp("scsi", aa->aa_ident) == 0)
sc->sc_flags |= HVSF_SCSI;
+ if (hv_channel_setdeferred(sc->sc_chan, sc->sc_dev.dv_xname)) {
+ printf(": failed to create the interrupt thread\n");
+ return;
+ }
+
if (hv_channel_open(sc->sc_chan, HVS_RING_SIZE, &sc->sc_props,
sizeof(sc->sc_props), hvs_intr, sc)) {
printf(": failed to open channel\n");