Re: [RFC v4 22/22] timekeeping: inform clockevents about freq adjustments

From: Nicolai Stange
Date: Wed Aug 24 2016 - 05:40:30 EST


Nicolai Stange <nicstange@xxxxxxxxx> writes:
> --- a/kernel/time/timekeeping.c
> +++ b/kernel/time/timekeeping.c
> @@ -1845,6 +1845,9 @@ static __always_inline void timekeeping_apply_adjustment(struct timekeeper *tk,
> tk->xtime_interval += interval;
> tk->tkr_mono.xtime_nsec -= offset;
> tk->ntp_error -= (interval - offset) << tk->ntp_error_shift;
> +
> + clockevents_adjust_all_freqs(tk->tkr_mono.mult,
> + tk->tkr_mono.clock->mult);
> }

FYI, the kernel build robot has reported a build failure for
CONFIG_GENERIC_CLOCKEVENTS=n.

In order to avoid unnecessary traffic, I'll only fix this up in a v5 if
you give the whole thing a go.