ag71xx: Move timestamp struct member outside of struct.
authorRosen Penev <rosenp@gmail.com>
Wed, 7 Feb 2018 21:57:30 +0000 (13:57 -0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 28 Feb 2018 11:46:02 +0000 (12:46 +0100)
commit810659a22c11ea0d2d94f3e09ddf7eb2d2bb1f1e
treef76c6928d9579dfadd8103d31f3b94654939042c
parent83d8df1ea21d4ab6d8d3f890d8f8a8e4718a80e8
ag71xx: Move timestamp struct member outside of struct.

With this change, the timestamp variable is only used in ag71xx_check_dma_stuck. Small tx speedup.

Based on a Qualcomm commit. ag->timestamp = jiffies was not replaced with netif_trans_update(dev) because of this quote:

It should be noted that after this series several instances
of netif_trans_update() are useless (if they occur in
.ndo_start_xmit and driver doesn't set LLTX flag -- stack already
did an update).

From: http://lists.openwall.net/netdev/2016/05/03/87

Signed-off-by: Rosen Penev <rosenp@gmail.com>
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c