summaryrefslogtreecommitdiff
path: root/drivers/net/phy/phy_device.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-07-08 16:02:09 +0400
committerDavid S. Miller <davem@davemloft.net>2014-07-09 07:57:46 +0400
commitbfd4ecdd87d350e19457fe0d02fa1e046774c44e (patch)
treeda520ead4d541c35cf29fc7c2c2e290b2d2a972b /drivers/net/phy/phy_device.c
parent96018f52c532b69424d354a848ac7812136650f6 (diff)
downloadlinux-bfd4ecdd87d350e19457fe0d02fa1e046774c44e.tar.xz
net: fec: consolidate hwtstamp implementation
Both transmit and receive use the same infrastructure for calculating the packet timestamp. Rather than duplicating the code, provide a function to do this common work. Model this function in the Intel e1000e version which avoids calling ns_to_ktime() within the spinlock; the spinlock is critical for timecounter_cyc2time() but not ns_to_ktime(). Acked-by: Richard Cochran <richardcochran@gmail.com> Acked-by: Fugang Duan <B38611@freescale.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/phy_device.c')
0 files changed, 0 insertions, 0 deletions