summaryrefslogtreecommitdiffstats
path: root/patches/boot_time_opt/0112-kernel-time-reduce-ntp-wakeups.patch
diff options
context:
space:
mode:
authorAdrian Calianu <adrian.calianu@enea.com>2021-05-11 09:42:24 +0200
committerAdrian Calianu <Adrian.Calianu@enea.com>2021-05-12 21:56:14 +0100
commitc6e89e8a31eeeb82c5711cba8235e7e55d9be6a8 (patch)
tree93a3d96c027a437fc9b168d07ab2ad62248d77d1 /patches/boot_time_opt/0112-kernel-time-reduce-ntp-wakeups.patch
parent7a93e54032bb148a92e16b59736a1b76fedae319 (diff)
downloadenea-kernel-cache-c6e89e8a31eeeb82c5711cba8235e7e55d9be6a8.tar.gz
boot_time_opt: update patches to 5.10 kernel
Patches used in boot time optimization are coming from clearlinux distribution. Update patches correspuding to 5.10 kernel: https://github.com/clearlinux-pkgs/linux/tree/5.10.32-1034 We selected a list of patches from ClearLinux. Those we have considered risky, unknown impact on functionality have been avoided. Change-Id: If01459292a5a383b49944645bd8536d9a62d9de3 Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
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.patch25
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 @@
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Arjan van de Ven <arjan@linux.intel.com>
3Date: Sat, 29 Apr 2017 22:24:34 +0000
4Subject: [PATCH] kernel: time: reduce ntp wakeups
5
6---
7 kernel/time/ntp.c | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c
11index 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--
24https://clearlinux.org
25