/* timekeeping_valid_for_hres - Check if timekeeping is suitable for hres  */
int timekeeping_valid_for_hres(void)
/* timekeeping_valid_for_hres - Check if timekeeping is suitable for hres  */
int timekeeping_valid_for_hres(void)
{
	unsigned long seq;
	int ret;
	do {
		seq = read_seqbegin(&xtime_lock);
		ret = timekeeper.clock->flags & CLOCK_SOURCE_VALID_FOR_HRES;
	} while (read_seqretry(&xtime_lock, seq));
	return ret;
}