[PATCH] remove unnecessary barrier in rtc_get_rtc_time
Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
9938406ab6
commit
358333a0cb
1 changed files with 1 additions and 3 deletions
|
@ -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.
|
* Once the read clears, read the RTC time (again via ioctl). Easy.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
while (rtc_is_updating() != 0 && jiffies - uip_watchdog < 2*HZ/100) {
|
while (rtc_is_updating() != 0 && jiffies - uip_watchdog < 2*HZ/100)
|
||||||
barrier();
|
|
||||||
cpu_relax();
|
cpu_relax();
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Only the values that we read from the RTC are set. We leave
|
* Only the values that we read from the RTC are set. We leave
|
||||||
|
|
Loading…
Reference in a new issue