/* Must be called while holding a write on the xtime_lock  */
void ntp_clear(void)
/* Must be called while holding a write on the xtime_lock  */
void ntp_clear(void)
{
	time_adjust	= 0;
	time_status	|= STA_UNSYNC;
	time_maxerror	= NTP_PHASE_LIMIT;
	time_esterror	= NTP_PHASE_LIMIT;
	ntp_update_frequency();
	tick_length	= tick_length_base;
	time_offset	= 0;
}