summaryrefslogtreecommitdiffstats
path: root/patches/boot_time_opt/0108-smpboot-reuse-timer-calibration.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/0108-smpboot-reuse-timer-calibration.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/0108-smpboot-reuse-timer-calibration.patch')
-rw-r--r--patches/boot_time_opt/0108-smpboot-reuse-timer-calibration.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/patches/boot_time_opt/0108-smpboot-reuse-timer-calibration.patch b/patches/boot_time_opt/0108-smpboot-reuse-timer-calibration.patch
new file mode 100644
index 0000000..7dd298e
--- /dev/null
+++ b/patches/boot_time_opt/0108-smpboot-reuse-timer-calibration.patch
@@ -0,0 +1,28 @@
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Arjan van de Ven <arjan@linux.intel.com>
3Date: Wed, 11 Feb 2015 17:28:14 -0600
4Subject: [PATCH] smpboot: reuse timer calibration
5
6NO point recalibrating for known-constant tsc ...
7saves 200ms+ of boot time.
8---
9 arch/x86/kernel/tsc.c | 3 +++
10 1 file changed, 3 insertions(+)
11
12diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
13index f70dffc2771f..dfb9f60554af 100644
14--- a/arch/x86/kernel/tsc.c
15+++ b/arch/x86/kernel/tsc.c
16@@ -1546,6 +1546,9 @@ unsigned long calibrate_delay_is_known(void)
17 if (!constant_tsc || !mask)
18 return 0;
19
20+ if (cpu != 0)
21+ return cpu_data(0).loops_per_jiffy;
22+
23 sibling = cpumask_any_but(mask, cpu);
24 if (sibling < nr_cpu_ids)
25 return cpu_data(sibling).loops_per_jiffy;
26--
27https://clearlinux.org
28