git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ntp: fix typo that makes sync_cmos_clock erratic
[sfrench/cifs-2.6.git]
/
kernel
/
time
/
ntp.c
diff --git
a/kernel/time/ntp.c
b/kernel/time/ntp.c
index de6a2d6b3ebb69ad65f1491e9f44a846e1b86f44..14a2ecf2b318f82bd87d22031da05738e3773fd4 100644
(file)
--- a/
kernel/time/ntp.c
+++ b/
kernel/time/ntp.c
@@
-205,7
+205,7
@@
static void sync_cmos_clock(unsigned long dummy)
return;
getnstimeofday(&now);
- if (abs(
xtime
.tv_nsec - (NSEC_PER_SEC / 2)) <= tick_nsec / 2)
+ if (abs(
now
.tv_nsec - (NSEC_PER_SEC / 2)) <= tick_nsec / 2)
fail = update_persistent_clock(now);
next.tv_nsec = (NSEC_PER_SEC / 2) - now.tv_nsec;