git: ad17789a8569 - main - virtio: Remove the unused poll method
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Aug 2025 08:44:01 UTC
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=ad17789a8569c6712c6d789232df2703a21088a4
commit ad17789a8569c6712c6d789232df2703a21088a4
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2025-08-20 09:14:36 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2025-08-21 08:37:53 +0000
virtio: Remove the unused poll method
This was used by virtio_mmio to poll via another driver. This support
has been removed so we can remove it from here too.
Reviewed by: br
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D51993
---
sys/dev/virtio/virtio_bus_if.m | 4 ----
sys/dev/virtio/virtqueue.c | 2 --
2 files changed, 6 deletions(-)
diff --git a/sys/dev/virtio/virtio_bus_if.m b/sys/dev/virtio/virtio_bus_if.m
index 57ae90bdc917..4181b641faad 100644
--- a/sys/dev/virtio/virtio_bus_if.m
+++ b/sys/dev/virtio/virtio_bus_if.m
@@ -109,7 +109,3 @@ METHOD void write_device_config {
int len;
};
-METHOD void poll {
- device_t dev;
-};
-
diff --git a/sys/dev/virtio/virtqueue.c b/sys/dev/virtio/virtqueue.c
index 8cc3326dc08e..cc7a233d60ee 100644
--- a/sys/dev/virtio/virtqueue.c
+++ b/sys/dev/virtio/virtqueue.c
@@ -605,10 +605,8 @@ virtqueue_poll(struct virtqueue *vq, uint32_t *len)
{
void *cookie;
- VIRTIO_BUS_POLL(vq->vq_dev);
while ((cookie = virtqueue_dequeue(vq, len)) == NULL) {
cpu_spinwait();
- VIRTIO_BUS_POLL(vq->vq_dev);
}
return (cookie);