summaryrefslogtreecommitdiffstats
path: root/sys/dev/virtio/balloon
diff options
context:
space:
mode:
authorbryanv <bryanv@FreeBSD.org>2013-07-04 17:50:11 +0000
committerbryanv <bryanv@FreeBSD.org>2013-07-04 17:50:11 +0000
commitecdd9ae0054b1b8b776661b78e8a20fb0973775d (patch)
treeadfa592c287e8e552c48a18adac66fc0d37fffd6 /sys/dev/virtio/balloon
parentbe7c32fd304a8aa87a4cd877782d254092d1282f (diff)
downloadFreeBSD-src-ecdd9ae0054b1b8b776661b78e8a20fb0973775d.zip
FreeBSD-src-ecdd9ae0054b1b8b776661b78e8a20fb0973775d.tar.gz
Convert VirtIO to use ithreads instead of taskqueues
Contains projects/virtio commits: r245709: Each VirtIO device was scheduling its own taskqueue(9) to do the off-level interrupt handling. ithreads(9) is the more nature way to do this. The primary motivation for this work to better support network multiqueue. r245710: virtio: Change virtqueue intr handlers to return void r245711: virtio_blk: Remove interrupt taskqueue r245721: vtnet: Remove interrupt taskqueue r245722: virtio_scsi: Remove interrupt taskqueue r245747: vtnet: Remove taskqueue fields missed in r245721 MFC after: 1 month
Diffstat (limited to 'sys/dev/virtio/balloon')
-rw-r--r--sys/dev/virtio/balloon/virtio_balloon.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/virtio/balloon/virtio_balloon.c b/sys/dev/virtio/balloon/virtio_balloon.c
index 9b45459..224a651 100644
--- a/sys/dev/virtio/balloon/virtio_balloon.c
+++ b/sys/dev/virtio/balloon/virtio_balloon.c
@@ -90,7 +90,7 @@ static int vtballoon_config_change(device_t);
static void vtballoon_negotiate_features(struct vtballoon_softc *);
static int vtballoon_alloc_virtqueues(struct vtballoon_softc *);
-static int vtballoon_vq_intr(void *);
+static void vtballoon_vq_intr(void *);
static void vtballoon_inflate(struct vtballoon_softc *, int);
static void vtballoon_deflate(struct vtballoon_softc *, int);
@@ -300,7 +300,7 @@ vtballoon_alloc_virtqueues(struct vtballoon_softc *sc)
return (virtio_alloc_virtqueues(dev, 0, nvqs, vq_info));
}
-static int
+static void
vtballoon_vq_intr(void *xsc)
{
struct vtballoon_softc *sc;
@@ -310,8 +310,6 @@ vtballoon_vq_intr(void *xsc)
VTBALLOON_LOCK(sc);
wakeup_one(sc);
VTBALLOON_UNLOCK(sc);
-
- return (1);
}
static void
OpenPOWER on IntegriCloud