Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 358333a0 authored by Steven Rostedt's avatar Steven Rostedt Committed by Linus Torvalds
Browse files

[PATCH] remove unnecessary barrier in rtc_get_rtc_time

parent 9938406a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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