/* NTP methods: Update (tick_length, tick_length_base, tick_nsec), based on (tick_usec, ntp_tick_adj, time_freq):  */
static void ntp_update_frequency(void)
/* NTP methods: Update (tick_length, tick_length_base, tick_nsec), based on (tick_usec, ntp_tick_adj, time_freq):  */
static void ntp_update_frequency(void)
{
	u64 second_length;
	u64 new_base;
	second_length		 = (u64)(tick_usec * NSEC_PER_USEC * USER_HZ)
						<< NTP_SCALE_SHIFT;
	second_length		+= ntp_tick_adj;
	second_length		+= time_freq;
	tick_nsec		 = div_u64(second_length, HZ) >> NTP_SCALE_SHIFT;
	new_base		 = div_u64(second_length, NTP_INTERVAL_FREQ);
	tick_length		+= new_base - tick_length_base;
	tick_length_base	 = new_base;
}