]> Pileus Git - ~andy/linux/blobdiff - drivers/net/xen-netback/interface.c
xen-netback: use jiffies_64 value to calculate credit timeout
[~andy/linux] / drivers / net / xen-netback / interface.c
index 01bb854c7f62bfc281dfdc0081829237f2f843d6..459935a6bfae3ab31c634feff974e64f8f93cf3d 100644 (file)
@@ -312,8 +312,7 @@ struct xenvif *xenvif_alloc(struct device *parent, domid_t domid,
        vif->credit_bytes = vif->remaining_credit = ~0UL;
        vif->credit_usec  = 0UL;
        init_timer(&vif->credit_timeout);
-       /* Initialize 'expires' now: it's used to track the credit window. */
-       vif->credit_timeout.expires = jiffies;
+       vif->credit_window_start = get_jiffies_64();
 
        dev->netdev_ops = &xenvif_netdev_ops;
        dev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO;