Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
One more time/ntp fix pulled from Ingo Molnar. * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: ntp: Fix STA_INS/DEL clearing bug
This commit is contained in:
Коммит
6f70242858
|
@ -409,7 +409,9 @@ int second_overflow(unsigned long secs)
|
||||||
time_state = TIME_DEL;
|
time_state = TIME_DEL;
|
||||||
break;
|
break;
|
||||||
case TIME_INS:
|
case TIME_INS:
|
||||||
if (secs % 86400 == 0) {
|
if (!(time_status & STA_INS))
|
||||||
|
time_state = TIME_OK;
|
||||||
|
else if (secs % 86400 == 0) {
|
||||||
leap = -1;
|
leap = -1;
|
||||||
time_state = TIME_OOP;
|
time_state = TIME_OOP;
|
||||||
time_tai++;
|
time_tai++;
|
||||||
|
@ -418,7 +420,9 @@ int second_overflow(unsigned long secs)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TIME_DEL:
|
case TIME_DEL:
|
||||||
if ((secs + 1) % 86400 == 0) {
|
if (!(time_status & STA_DEL))
|
||||||
|
time_state = TIME_OK;
|
||||||
|
else if ((secs + 1) % 86400 == 0) {
|
||||||
leap = 1;
|
leap = 1;
|
||||||
time_tai--;
|
time_tai--;
|
||||||
time_state = TIME_WAIT;
|
time_state = TIME_WAIT;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче