Displaying 4 results from an estimated 4 matches for "hrtimer_cb_softirq".
2008 Jan 03
1
[PATCH] Use memset(0) instead of setting cb_mode explicitly
hrtimer's only have a cb_mode if CONFIG_HIGH_RES_TIMER is enabled. This patch
memset()s the tx_timer structure to 0 which has the same effect as setting
cb_mode to HRTIMER_CB_SOFTIRQ without requiring CONFIG_HIGH_RES_TIMER to be
set. This seems to be what other drivers do.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 47e4fce..d11a670 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/vi...
2008 Jan 03
1
[PATCH] Use memset(0) instead of setting cb_mode explicitly
hrtimer's only have a cb_mode if CONFIG_HIGH_RES_TIMER is enabled. This patch
memset()s the tx_timer structure to 0 which has the same effect as setting
cb_mode to HRTIMER_CB_SOFTIRQ without requiring CONFIG_HIGH_RES_TIMER to be
set. This seems to be what other drivers do.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 47e4fce..d11a670 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/vi...
2007 Dec 21
0
[kvm-devel] [Virtio-for-kvm] [PATCH 6/13] [Mostly resend] virtio additions
...irtnet_probe(struct virtio_device *vdev)
netif_napi_add(dev, &vi->napi, virtnet_poll, 16);
vi->dev = dev;
vi->vdev = vdev;
+ hrtimer_init(&vi->tx_timer, CLOCK_REALTIME, HRTIMER_MODE_REL);
+ vi->tx_timer.function = kick_xmit;
+ vi->tx_timer.cb_mode = HRTIMER_CB_SOFTIRQ;
+ vi->out_max = -1U;
/* We expect two virtqueues, receive then send. */
vi->rvq = vdev->config->find_vq(vdev, 0, skb_recv_done);
--
1.5.3.3
2007 Dec 21
0
[kvm-devel] [Virtio-for-kvm] [PATCH 6/13] [Mostly resend] virtio additions
...irtnet_probe(struct virtio_device *vdev)
netif_napi_add(dev, &vi->napi, virtnet_poll, 16);
vi->dev = dev;
vi->vdev = vdev;
+ hrtimer_init(&vi->tx_timer, CLOCK_REALTIME, HRTIMER_MODE_REL);
+ vi->tx_timer.function = kick_xmit;
+ vi->tx_timer.cb_mode = HRTIMER_CB_SOFTIRQ;
+ vi->out_max = -1U;
/* We expect two virtqueues, receive then send. */
vi->rvq = vdev->config->find_vq(vdev, 0, skb_recv_done);
--
1.5.3.3