[PATCH RFC 30/30] net: fec: consolidate hwtstamp implementation

Richard Cochran richardcochran at gmail.com
Fri Jun 20 23:11:12 PDT 2014


On Fri, Jun 20, 2014 at 01:14:16PM +0100, Russell King wrote:
> 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().

Thanks for cleaning this up.

Acked-by: Richard Cochran <richardcochran at gmail.com>



More information about the linux-arm-kernel mailing list