]> 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)
commit761e94bd6d327f80aba7261078204906b09a584f
treecb152135d7336f280762ed2aaa6450e6d9d4d688
parent48b42fae87bf7711d58e79549efaa113a8a86028
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