From: Ben Hutchings Date: Wed, 12 Feb 2014 18:58:46 +0000 (+0000) Subject: sfc: Rewrite adjustment of PPS event in a clearer way X-Git-Tag: v3.15-rc1~113^2~384^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92d8f766ecce190dc2aa5d1aa9a5f5381e831641;p=pandora-kernel.git sfc: Rewrite adjustment of PPS event in a clearer way There is substantial latency in generation and handling of PPS events from the NIC, which we have to correct for before passing a host timestamp to the PPS subsystem. We compare clocks with the MC, giving us two offsets to subtract from the timestamp generated by pps_get_ts(): (a) Time from the last good sync (where we got host and NIC timestamps for nearly the same instant) to the time we called pps_get_ts() (b) Time from NIC top of second to the last good sync We currently calculate (a) + (b) in a quite confusing way. Instead, calculate (a) completely, then add (b) to it. Signed-off-by: Ben Hutchings Signed-off-by: Shradha Shah Signed-off-by: David S. Miller --- Reading git-diff-tree failed