mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [alsa-devel][PATCH] Signed-off-by: lsh <410860423@qq.com>
@ 2019-07-20  6:17 lsh
  2019-07-20  6:35 ` lsh
  2019-07-22 17:59 ` John Stultz
  0 siblings, 2 replies; 3+ messages in thread
From: lsh @ 2019-07-20  6:17 UTC (permalink / raw)
  To: tglx; +Cc: sboyd, john.stultz, linux-kernel, lsh

From: lsh <410860423@qq.com>

Modification of leap seconds from 58 59 59 00 to 58 59 00 00
---
 kernel/time/ntp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c
index 65eb796..7edae41 100644
--- a/kernel/time/ntp.c
+++ b/kernel/time/ntp.c
@@ -425,7 +425,6 @@ int second_overflow(time64_t secs)
 			ntp_next_leap_sec = TIME64_MAX;
 			time_state = TIME_OK;
 		} else if (secs == ntp_next_leap_sec) {
-			leap = -1;
 			time_state = TIME_OOP;
 			printk(KERN_NOTICE
 				"Clock: inserting leap second 23:59:60 UTC\n");
@@ -444,6 +443,7 @@ int second_overflow(time64_t secs)
 		}
 		break;
 	case TIME_OOP:
+		leap = -1;
 		ntp_next_leap_sec = TIME64_MAX;
 		time_state = TIME_WAIT;
 		break;
-- 
2.7.4



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-22 17:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-20  6:17 [alsa-devel][PATCH] Signed-off-by: lsh <410860423@qq.com> lsh
2019-07-20  6:35 ` lsh
2019-07-22 17:59 ` John Stultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®