Skip to content

Commit

Permalink
[PATCH] remove unnecessary barrier in rtc_get_rtc_time
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Steven Rostedt authored and Linus Torvalds committed Sep 29, 2006
1 parent 9938406 commit 358333a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/char/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 358333a

Please sign in to comment.