search for: 47e4fce

Displaying 2 results from an estimated 2 matches for "47e4fce".

2008 Jan 03
1
[PATCH] Use memset(0) instead of setting cb_mode explicitly
...ure 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/virtio_net.c @@ -434,9 +434,9 @@ static int virtnet_probe(struct virtio_device *vdev) netif_napi_add(dev, &vi->napi, virtnet_poll, napi_weight); vi->dev = dev; vi->vdev = vdev; + memset(&vi->tx_timer, 0, size...
2008 Jan 03
1
[PATCH] Use memset(0) instead of setting cb_mode explicitly
...ure 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/virtio_net.c @@ -434,9 +434,9 @@ static int virtnet_probe(struct virtio_device *vdev) netif_napi_add(dev, &vi->napi, virtnet_poll, napi_weight); vi->dev = dev; vi->vdev = vdev; + memset(&vi->tx_timer, 0, size...