From: Steven Rostedt Date: Fri, 29 Sep 2006 08:59:04 +0000 (-0700) Subject: [PATCH] remove unnecessary barrier in rtc_get_rtc_time X-Git-Tag: v2.6.19-rc1~830 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=358333a0cb4a6d279806e38d0368b79066dbe5e7;p=linux-2.6 [PATCH] remove unnecessary barrier in rtc_get_rtc_time Signed-off-by: Steven Rostedt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c index ab6429b4a8..656f8c0ca5 100644 --- a/drivers/char/rtc.c +++ b/drivers/char/rtc.c @@ -1262,10 +1262,8 @@ void rtc_get_rtc_time(struct rtc_time *rtc_tm) * 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