[ Upstream commit 23797b98909f34b75fd130369bde86f760db69d0 ] We can't just use the top bits of the last sync event as they could be off-by-one every 65,536 seconds, giving an error in reconstruction of 65,536 seconds. This patch uses the difference in the bottom 16 bits (mod 2^16) to calculate an offset that needs to be applied to the last sync event to get to the current time. Signed-off-by: Alexandru-Mihai Maftei <amaftei@solarflare.com> Acked-by: Martin Habets <mhabets@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org> |
||
---|---|---|
.. | ||
falcon | ||
bitfield.h | ||
ef10.c | ||
ef10_regs.h | ||
ef10_sriov.c | ||
ef10_sriov.h | ||
efx.c | ||
efx.h | ||
enum.h | ||
ethtool.c | ||
farch.c | ||
farch_regs.h | ||
filter.h | ||
io.h | ||
Kconfig | ||
Makefile | ||
mcdi.c | ||
mcdi.h | ||
mcdi_mon.c | ||
mcdi_pcol.h | ||
mcdi_port.c | ||
mtd.c | ||
net_driver.h | ||
nic.c | ||
nic.h | ||
ptp.c | ||
rx.c | ||
selftest.c | ||
selftest.h | ||
siena.c | ||
siena_sriov.c | ||
siena_sriov.h | ||
sriov.c | ||
sriov.h | ||
tx.c | ||
tx.h | ||
tx_tso.c | ||
vfdi.h | ||
workarounds.h |