/* Returns true if a clock update is in progress  */
static unsigned char rtc_is_updating(void)
/* Returns true if a clock update is in progress  */
static unsigned char rtc_is_updating(void)
{
	unsigned long flags;
	unsigned char uip;
	spin_lock_irqsave(&rtc_lock, flags);
	uip = (CMOS_READ(RTC_FREQ_SELECT) & RTC_UIP);
	spin_unlock_irqrestore(&rtc_lock, flags);
	return uip;
}