From: Richard Cochran Date: Sun, 21 Dec 2014 18:46:57 +0000 (+0100) Subject: timecounter: provide a helper function to shift the time. X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~328^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=796c1efd6fa0ed696d550b68f4410ab1a1749d01;p=pandora-kernel.git 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 Signed-off-by: Richard Cochran Signed-off-by: David S. Miller --- Reading git-diff-tree failed