From: Steven Rostedt Signed-off-by: Steven Rostedt Signed-off-by: Andrew Morton --- drivers/char/rtc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff -puN drivers/char/rtc.c~remove-unnecessary-barrier-in-rtc_get_rtc_time drivers/char/rtc.c --- a/drivers/char/rtc.c~remove-unnecessary-barrier-in-rtc_get_rtc_time +++ a/drivers/char/rtc.c @@ -1261,10 +1261,8 @@ void rtc_get_rtc_time(struct rtc_time *r * Once the read clears, read the RTC time (again via ioctl). Easy. */ - while (rtc_is_updating() != 0 && jiffies - uip_watchdog < 2*HZ/100) { - barrier(); + while (rtc_is_updating() != 0 && jiffies - uip_watchdog < 2*HZ/100) cpu_relax(); - } /* * Only the values that we read from the RTC are set. We leave _