diff options
author | Martin Borg <martin.borg@enea.com> | 2018-03-23 14:01:03 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2018-03-26 09:57:31 +0200 |
commit | c4bd5f6e084a6ced2c7a2f76798d0a34947ffeb7 (patch) | |
tree | e46d5f9bceca1947817b7739d366aa44faea9be1 /patches/boot_time_opt/0114-smpboot-reuse-timer-calibration.patch | |
parent | dfc8946f58bbf4aa3a345c4fb5d5895502936edd (diff) | |
download | enea-kernel-cache-c4bd5f6e084a6ced2c7a2f76798d0a34947ffeb7.tar.gz |
boot_time_opt: update host boot time optimization patches for 4.14
The new patches are based on:
https://github.com/clearlinux-pkgs/linux-lts
commit 5595fe425a52af6734235a1a953b6b03210060ec
Signed-off-by: Martin Borg <martin.borg@enea.com>
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'patches/boot_time_opt/0114-smpboot-reuse-timer-calibration.patch')
-rw-r--r-- | patches/boot_time_opt/0114-smpboot-reuse-timer-calibration.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/patches/boot_time_opt/0114-smpboot-reuse-timer-calibration.patch b/patches/boot_time_opt/0114-smpboot-reuse-timer-calibration.patch new file mode 100644 index 0000000..5fe8cdf --- /dev/null +++ b/patches/boot_time_opt/0114-smpboot-reuse-timer-calibration.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 283fcb879f66da9659f1983bcf173476bae9292b Mon Sep 17 00:00:00 2001 | ||
2 | From: Arjan van de Ven <arjan@linux.intel.com> | ||
3 | Date: Wed, 11 Feb 2015 17:28:14 -0600 | ||
4 | Subject: [PATCH 114/126] smpboot: reuse timer calibration | ||
5 | |||
6 | NO point recalibrating for known-constant tsc... saves 200ms+ of boot time. | ||
7 | |||
8 | Author: Arjan van de Ven <arjan@linux.intel.com> | ||
9 | |||
10 | Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com> | ||
11 | --- | ||
12 | arch/x86/kernel/tsc.c | 3 +++ | ||
13 | 1 file changed, 3 insertions(+) | ||
14 | |||
15 | diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c | ||
16 | index ad2b925a808e..6aed4e79f290 100644 | ||
17 | --- a/arch/x86/kernel/tsc.c | ||
18 | +++ b/arch/x86/kernel/tsc.c | ||
19 | @@ -1352,6 +1352,9 @@ unsigned long calibrate_delay_is_known(void) | ||
20 | if (tsc_disabled || !constant_tsc || !mask) | ||
21 | return 0; | ||
22 | |||
23 | + if (cpu != 0) | ||
24 | + return cpu_data(0).loops_per_jiffy; | ||
25 | + | ||
26 | sibling = cpumask_any_but(mask, cpu); | ||
27 | if (sibling < nr_cpu_ids) | ||
28 | return cpu_data(sibling).loops_per_jiffy; | ||
29 | -- | ||
30 | 2.15.0 | ||
31 | |||