26 lines
777 B
Diff
26 lines
777 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Arjan van de Ven <arjan@linux.intel.com>
|
|
Date: Sat, 29 Apr 2017 22:24:34 +0000
|
|
Subject: [PATCH] kernel: time: reduce ntp wakeups
|
|
|
|
---
|
|
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 069ca78fb0bf..22d82f21fc2e 100644
|
|
--- a/kernel/time/ntp.c
|
|
+++ b/kernel/time/ntp.c
|
|
@@ -513,7 +513,7 @@ static void sched_sync_hw_clock(struct timespec64 now,
|
|
* the algorithm is very likely to require a short-sleep retry
|
|
* after the above long sleep to synchronize ts_nsec.
|
|
*/
|
|
- next.tv_sec = 0;
|
|
+ next.tv_sec = 10;
|
|
}
|
|
|
|
/* Compute the needed delay that will get to tv_nsec == target_nsec */
|
|
--
|
|
https://clearlinux.org
|
|
|