mirror of
https://github.com/opnsense/src.git
synced 2026-07-15 12:11:48 -04:00
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
This commit is contained in:
parent
4740d47238
commit
ad17789a85
2 changed files with 0 additions and 6 deletions
|
|
@ -109,7 +109,3 @@ METHOD void write_device_config {
|
|||
int len;
|
||||
};
|
||||
|
||||
METHOD void poll {
|
||||
device_t dev;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue