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)
commitbc3c5f634de23ca767c2d04d356ddf5bbe2144e2
treecb152135d7336f280762ed2aaa6450e6d9d4d688
parent85c153d2c7e51efcf0f715118c3c30b62c5fce68
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