From: Russell King Date: Tue, 8 Jul 2014 12:02:09 +0000 (+0100) Subject: net: fec: consolidate hwtstamp implementation X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~198^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfd4ecdd87d350e19457fe0d02fa1e046774c44e;p=pandora-kernel.git 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 Acked-by: Fugang Duan Signed-off-by: Russell King Signed-off-by: David S. Miller --- Reading git-diff-tree failed