diff options
Diffstat (limited to 'patches/boot_time_opt/0124-tweak-perfbias.patch')
-rw-r--r-- | patches/boot_time_opt/0124-tweak-perfbias.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/patches/boot_time_opt/0124-tweak-perfbias.patch b/patches/boot_time_opt/0124-tweak-perfbias.patch new file mode 100644 index 0000000..56a2865 --- /dev/null +++ b/patches/boot_time_opt/0124-tweak-perfbias.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 03e2c414a860264511dae5bbfc6d7e62b8b94f0f Mon Sep 17 00:00:00 2001 | ||
2 | From: Arjan van de Ven <arjan@linux.intel.com> | ||
3 | Date: Sun, 22 Jan 2017 18:51:13 +0000 | ||
4 | Subject: [PATCH 124/124] tweak perfbias | ||
5 | |||
6 | --- | ||
7 | arch/x86/kernel/cpu/intel.c | 6 +++--- | ||
8 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
9 | |||
10 | diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c | ||
11 | index fcd484d2bb03..13ae40f10bd4 100644 | ||
12 | --- a/arch/x86/kernel/cpu/intel.c | ||
13 | +++ b/arch/x86/kernel/cpu/intel.c | ||
14 | @@ -434,12 +434,12 @@ static void init_intel_energy_perf(struct cpuinfo_x86 *c) | ||
15 | return; | ||
16 | |||
17 | rdmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb); | ||
18 | - if ((epb & 0xF) != ENERGY_PERF_BIAS_PERFORMANCE) | ||
19 | + if ((epb & 0xF) >= ENERGY_PERF_BIAS_NORMAL) | ||
20 | return; | ||
21 | |||
22 | - pr_warn_once("ENERGY_PERF_BIAS: Set to 'normal', was 'performance'\n"); | ||
23 | + pr_warn_once("ENERGY_PERF_BIAS: Set to 'performance', was 'normal'\n"); | ||
24 | pr_warn_once("ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8)\n"); | ||
25 | - epb = (epb & ~0xF) | ENERGY_PERF_BIAS_NORMAL; | ||
26 | + epb = (epb & ~0xF) | ENERGY_PERF_BIAS_PERFORMANCE; | ||
27 | wrmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb); | ||
28 | } | ||
29 | |||
30 | -- | ||
31 | 2.11.1 | ||
32 | |||