/* Function to check if the clock is in sync.  */
static int check_sync_clock(void)
/* Function to check if the clock is in sync.  */
static int check_sync_clock(void)
{
	atomic_t *sw_ptr;
	int rc;
	sw_ptr = &get_cpu_var(clock_sync_word);
	rc = (atomic_read(sw_ptr) & 0x80000000U) != 0;
	put_cpu_var(clock_sync_word);
	return rc;
}