]> git.karo-electronics.de Git - karo-tx-linux.git/commit
time: allow changing the timekeeper clock frequency
authorChris Metcalf <cmetcalf@tilera.com>
Thu, 8 Aug 2013 19:34:38 +0000 (15:34 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 13 Aug 2013 20:26:47 +0000 (16:26 -0400)
commite2730541e178e2624ae21af62a9ec1785f75b43c
tree0d4c3ad471b9bf7c58e246fe059ae5a254cce3dd
parent9ae09838470a68edf0245cd60c623df2d5993a8f
time: allow changing the timekeeper clock frequency

On the tile architecture, we use the processor clock tick as the time
source.  However, when we perform dynamic frequency adjustment and
modify the clock rate of the core, we have to update the timekeeper
state to account for the new frequency, as well as for the time it took
to actually modify the frequency across the chip as a whole.

This change introduces two new functions, timekeeping_chfreq(), which
changes the frequency, plus timekeeping_chfreq_prep(), used to put the
timekeeping system in a state that is ready for a frequency change.
More information is in the comments for the new functions.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
include/linux/clocksource.h
kernel/time/timekeeping.c