diff options
author | Adrian Calianu <adrian.calianu@enea.com> | 2017-05-22 08:43:50 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2017-05-23 14:58:35 +0200 |
commit | 16b0e3313f53566481c106ace9992e477f8efe9b (patch) | |
tree | 5ec03a62db7836d2fb59813cb0c912751556c378 /patches/boot_time_opt/0116-smpboot-reuse-timer-calibration.patch | |
parent | 28da254d1c5ae012a6e064671aa14850c2a21a25 (diff) | |
download | enea-kernel-cache-16b0e3313f53566481c106ace9992e477f8efe9b.tar.gz |
patches: Boot time optimizations with ClearLinux patches
Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'patches/boot_time_opt/0116-smpboot-reuse-timer-calibration.patch')
-rw-r--r-- | patches/boot_time_opt/0116-smpboot-reuse-timer-calibration.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/patches/boot_time_opt/0116-smpboot-reuse-timer-calibration.patch b/patches/boot_time_opt/0116-smpboot-reuse-timer-calibration.patch new file mode 100644 index 0000000..d1f71b5 --- /dev/null +++ b/patches/boot_time_opt/0116-smpboot-reuse-timer-calibration.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 16104411cc5a7b20f310e3ecede85343ee6ce6b9 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 116/124] 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 46b2f41f8b05..88553c1f21f1 100644 | ||
17 | --- a/arch/x86/kernel/tsc.c | ||
18 | +++ b/arch/x86/kernel/tsc.c | ||
19 | @@ -1384,6 +1384,9 @@ unsigned long calibrate_delay_is_known(void) | ||
20 | if (!tsc_disabled && !cpu_has(&cpu_data(cpu), X86_FEATURE_CONSTANT_TSC)) | ||
21 | return 0; | ||
22 | |||
23 | + if (cpu != 0) | ||
24 | + return cpu_data(0).loops_per_jiffy; | ||
25 | + | ||
26 | if (!mask) | ||
27 | return 0; | ||
28 | |||
29 | -- | ||
30 | 2.11.1 | ||
31 | |||