aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2014-12-21 19:46:57 +0100
committerDavid S. Miller <davem@davemloft.net>2014-12-30 18:29:25 -0500
commit796c1efd6fa0ed696d550b68f4410ab1a1749d01 (patch)
tree293ff0aa5a0f4b3305672c624b2c50a87a8b181a /scripts/patch-kernel
parenttime: move the timecounter/cyclecounter code into its own file. (diff)
downloadlinux-796c1efd6fa0ed696d550b68f4410ab1a1749d01.tar.gz
linux-796c1efd6fa0ed696d550b68f4410ab1a1749d01.zip
timecounter: provide a helper function to shift the time.
Some PTP Hardware Clock drivers use a struct timecounter to represent their clock. To adjust the time by a given offset, these drivers all perform a two step read/write of their timecounter. However, it is better and simpler just to adjust the offset in one step. This patch introduces a little routine to help drivers implement the adjtime method. Suggested-by: Janusz Użycki <j.uzycki@elproma.com.pl> Signed-off-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions