]> git.baikalelectronics.ru Git - kernel.git/commit
bfin_mac: replace sys time stamps with raw ones instead.
authorRichard Cochran <richardcochran@gmail.com>
Wed, 31 Oct 2012 06:27:23 +0000 (06:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Nov 2012 15:41:35 +0000 (11:41 -0400)
commit512f336b1a55ff4b984b827bf2ce1671b222dce6
treecb152135d7336f280762ed2aaa6450e6d9d4d688
parentd5030894e221e55e8efcfeac2f6ade8dc2201e01
bfin_mac: replace sys time stamps with raw ones instead.

This patch replaces the sys time stamps and timecompare code with simple
raw hardware time stamps in nanosecond resolution. The only tricky bit is
to find a PTP Hardware Clock period slower than the input clock period
and a power of two.

Compile tested only.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Tested-by: Bob Liu <lliubbo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/adi/bfin_mac.c
drivers/net/ethernet/adi/bfin_mac.h