diff options
Diffstat (limited to 'patches/boot_time_opt/0112-kernel-time-reduce-ntp-wakeups.patch')
-rw-r--r-- | patches/boot_time_opt/0112-kernel-time-reduce-ntp-wakeups.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/boot_time_opt/0112-kernel-time-reduce-ntp-wakeups.patch b/patches/boot_time_opt/0112-kernel-time-reduce-ntp-wakeups.patch new file mode 100644 index 0000000..724b2b9 --- /dev/null +++ b/patches/boot_time_opt/0112-kernel-time-reduce-ntp-wakeups.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
2 | From: Arjan van de Ven <arjan@linux.intel.com> | ||
3 | Date: Sat, 29 Apr 2017 22:24:34 +0000 | ||
4 | Subject: [PATCH] kernel: time: reduce ntp wakeups | ||
5 | |||
6 | --- | ||
7 | kernel/time/ntp.c | 2 +- | ||
8 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
9 | |||
10 | diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c | ||
11 | index 069ca78fb0bf..22d82f21fc2e 100644 | ||
12 | --- a/kernel/time/ntp.c | ||
13 | +++ b/kernel/time/ntp.c | ||
14 | @@ -513,7 +513,7 @@ static void sched_sync_hw_clock(struct timespec64 now, | ||
15 | * the algorithm is very likely to require a short-sleep retry | ||
16 | * after the above long sleep to synchronize ts_nsec. | ||
17 | */ | ||
18 | - next.tv_sec = 0; | ||
19 | + next.tv_sec = 10; | ||
20 | } | ||
21 | |||
22 | /* Compute the needed delay that will get to tv_nsec == target_nsec */ | ||
23 | -- | ||
24 | https://clearlinux.org | ||
25 | |||