]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/ds1286.c
Char: ds1286, eliminate busy waiting
[linux-2.6-omap-h63xx.git] / drivers / char / ds1286.c
index fb584938c9c3b2eb81bb954a8a8af41fa40fbf00..5329d482b582bd06fff9d4acf66b044683de05e5 100644 (file)
@@ -443,7 +443,6 @@ static void ds1286_get_time(struct rtc_time *rtc_tm)
 {
        unsigned char save_control;
        unsigned long flags;
-       unsigned long uip_watchdog = jiffies;
 
        /*
         * read RTC once any update in progress is done. The update
@@ -456,8 +455,7 @@ static void ds1286_get_time(struct rtc_time *rtc_tm)
         */
 
        if (ds1286_is_updating() != 0)
-               while (time_before(jiffies, uip_watchdog + 2*HZ/100))
-                       barrier();
+               msleep(20);
 
        /*
         * Only the values that we read from the RTC are set. We leave