projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9938406
)
[PATCH] remove unnecessary barrier in rtc_get_rtc_time
author
Steven Rostedt
<rostedt@goodmis.org>
Fri, 29 Sep 2006 08:59:04 +0000
(
01:59
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:05 +0000
(09:18 -0700)
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/rtc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/rtc.c
b/drivers/char/rtc.c
index ab6429b4a84e424a9e390d3946bbd1ff6a8c316f..656f8c0ca52effdc31f343360a91309278ae5760 100644
(file)
--- 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