mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
treewide: replace dev->trans_start update with helper
Replace all trans_start updates with netif_trans_update helper. change was done via spatch: struct net_device *d; @@ - d->trans_start = jiffies + netif_trans_update(d) Compile tested only. Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Florian Westphal <[email protected]> Acked-by: Felipe Balbi <[email protected]> Acked-by: Mugunthan V N <[email protected]> Acked-by: Antonio Quartulli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
ba162f8eed
commit
860e9538a9
156 changed files with 232 additions and 232 deletions
|
|
@ -2662,7 +2662,7 @@ static int gsm_mux_net_start_xmit(struct sk_buff *skb,
|
|||
STATS(net).tx_bytes += skb->len;
|
||||
gsm_dlci_data_kick(dlci);
|
||||
/* And tell the kernel when the last transmit started. */
|
||||
net->trans_start = jiffies;
|
||||
netif_trans_update(net);
|
||||
muxnet_put(mux_net);
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7708,7 +7708,7 @@ static netdev_tx_t hdlcdev_xmit(struct sk_buff *skb,
|
|||
dev_kfree_skb(skb);
|
||||
|
||||
/* save start time for transmit timeout detection */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
/* start hardware transmitter if necessary */
|
||||
spin_lock_irqsave(&info->irq_spinlock,flags);
|
||||
|
|
@ -7764,7 +7764,7 @@ static int hdlcdev_open(struct net_device *dev)
|
|||
mgsl_program_hw(info);
|
||||
|
||||
/* enable network layer transmit */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
netif_start_queue(dev);
|
||||
|
||||
/* inform generic HDLC layer of current DCD status */
|
||||
|
|
|
|||
|
|
@ -1493,7 +1493,7 @@ static netdev_tx_t hdlcdev_xmit(struct sk_buff *skb,
|
|||
dev->stats.tx_bytes += skb->len;
|
||||
|
||||
/* save start time for transmit timeout detection */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
spin_lock_irqsave(&info->lock, flags);
|
||||
tx_load(info, skb->data, skb->len);
|
||||
|
|
@ -1552,7 +1552,7 @@ static int hdlcdev_open(struct net_device *dev)
|
|||
program_hw(info);
|
||||
|
||||
/* enable network layer transmit */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
netif_start_queue(dev);
|
||||
|
||||
/* inform generic HDLC layer of current DCD status */
|
||||
|
|
|
|||
|
|
@ -1612,7 +1612,7 @@ static netdev_tx_t hdlcdev_xmit(struct sk_buff *skb,
|
|||
dev_kfree_skb(skb);
|
||||
|
||||
/* save start time for transmit timeout detection */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
/* start hardware transmitter if necessary */
|
||||
spin_lock_irqsave(&info->lock,flags);
|
||||
|
|
@ -1668,7 +1668,7 @@ static int hdlcdev_open(struct net_device *dev)
|
|||
program_hw(info);
|
||||
|
||||
/* enable network layer transmit */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
netif_start_queue(dev);
|
||||
|
||||
/* inform generic HDLC layer of current DCD status */
|
||||
|
|
|
|||
Loading…
Reference in a new issue