diff options
author | Miroslav Lichvar <mlichvar@redhat.com> | 2018-06-04 15:34:21 +0200 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2018-07-10 12:44:25 -0700 |
commit | b061c7a513afe14a68af41cec7c3476befc40e95 (patch) | |
tree | 7ba281cefc23a75880c3c128e9b9250fa2213997 /fs/timerfd.c | |
parent | 1416270f4a1ae83ea84156ceba19a66a8f88be1f (diff) | |
download | linux-rpi-b061c7a513afe14a68af41cec7c3476befc40e95.tar.gz linux-rpi-b061c7a513afe14a68af41cec7c3476befc40e95.tar.bz2 linux-rpi-b061c7a513afe14a68af41cec7c3476befc40e95.zip |
timekeeping: Update multiplier when NTP frequency is set directly
When the NTP frequency is set directly from userspace using the
ADJ_FREQUENCY or ADJ_TICK timex mode, immediately update the
timekeeper's multiplier instead of waiting for the next tick.
This removes a hidden non-deterministic delay in setting of the
frequency and allows an extremely tight control of the system clock
with update rates close to or even exceeding the kernel HZ.
The update is limited to archs using modern timekeeping
(!ARCH_USES_GETTIMEOFFSET).
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'fs/timerfd.c')
0 files changed, 0 insertions, 0 deletions