]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ntp: Fix STA_INS/DEL clearing bug
authorJohn Stultz <johnstul@us.ibm.com>
Fri, 13 Jul 2012 05:21:50 +0000 (01:21 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:46 +0000 (15:35 -0400)
commitd9ccaf3143473c6dd11b10d49e524eaa39fabcec
tree700375161e8319d22890b2e82e1cac01644cb8a8
parent3d0f1226f01ff60e3850cfd8fec9c5e36f0297ae
ntp: Fix STA_INS/DEL clearing bug

commit 6b1859dba01c7d512b72d77e3fd7da8354235189 upstream.

In commit 6b43ae8a619d17c4935c3320d2ef9e92bdeed05d, I
introduced a bug that kept the STA_INS or STA_DEL bit
from being cleared from time_status via adjtimex()
without forcing STA_PLL first.

Usually once the STA_INS is set, it isn't cleared
until the leap second is applied, so its unlikely this
affected anyone. However during testing I noticed it
took some effort to cancel a leap second once STA_INS
was set.

Signed-off-by: John Stultz <johnstul@us.ibm.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Link: http://lkml.kernel.org/r/1342156917-25092-2-git-send-email-john.stultz@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/ntp.c