add haswell pstate support
This commit is contained in:
parent
d316b6a0bc
commit
faf5e2e2e0
32
3.11-haswell-intel_pstate.patch
Normal file
32
3.11-haswell-intel_pstate.patch
Normal file
@ -0,0 +1,32 @@
|
||||
From 6cdcdb793791f776ea9408581b1242b636d43b37 Mon Sep 17 00:00:00 2001
|
||||
From: Nell Hardcastle <nell@spicious.com>
|
||||
Date: Sun, 30 Jun 2013 22:58:57 +0000
|
||||
Subject: intel_pstate: Add Haswell CPU models
|
||||
|
||||
Enable the intel_pstate driver for Haswell CPUs. One missing Ivy Bridge
|
||||
model (0x3E) is also included. Models referenced from
|
||||
tools/power/x86/turbostat/turbostat.c:has_nehalem_turbo_ratio_limit
|
||||
|
||||
Signed-off-by: Nell Hardcastle <nell@spicious.com>
|
||||
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
|
||||
Acked-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
|
||||
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
|
||||
---
|
||||
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
|
||||
index 6efd96c..9733f29 100644
|
||||
--- a/drivers/cpufreq/intel_pstate.c
|
||||
+++ b/drivers/cpufreq/intel_pstate.c
|
||||
@@ -522,6 +522,11 @@ static const struct x86_cpu_id intel_pstate_cpu_ids[] = {
|
||||
ICPU(0x2a, default_policy),
|
||||
ICPU(0x2d, default_policy),
|
||||
ICPU(0x3a, default_policy),
|
||||
+ ICPU(0x3c, default_policy),
|
||||
+ ICPU(0x3e, default_policy),
|
||||
+ ICPU(0x3f, default_policy),
|
||||
+ ICPU(0x45, default_policy),
|
||||
+ ICPU(0x46, default_policy),
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(x86cpu, intel_pstate_cpu_ids);
|
||||
--
|
||||
cgit v0.9.2
|
14
PKGBUILD
14
PKGBUILD
@ -5,7 +5,7 @@ pkgbase=linux # Build stock -ARCH kernel
|
||||
#pkgbase=linux-custom # Build kernel with a different name
|
||||
_srcname=linux-3.11
|
||||
pkgver=3.11.1
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://www.kernel.org/"
|
||||
license=('GPL2')
|
||||
@ -19,7 +19,8 @@ source=("http://www.kernel.org/pub/linux/kernel/v3.x/${_srcname}.tar.xz"
|
||||
'linux.preset'
|
||||
'change-default-console-loglevel.patch'
|
||||
'criu-no-expert.patch'
|
||||
'3.11.1-fix-skge.patch')
|
||||
'3.11.1-fix-skge.patch'
|
||||
'3.11-haswell-intel_pstate.patch')
|
||||
md5sums=('fea363551ff45fbe4cb88497b863b261'
|
||||
'43331cad943b9540afea49ad8ce5cf46'
|
||||
'247d9bafa184e2d9a27c1a0485419fff'
|
||||
@ -27,7 +28,9 @@ md5sums=('fea363551ff45fbe4cb88497b863b261'
|
||||
'eb14dcfd80c00852ef81ded6e826826a'
|
||||
'98beb36f9b8cf16e58de2483ea9985e3'
|
||||
'd50c1ac47394e9aec637002ef3392bd1'
|
||||
'4fcee2b4485492dcfdead632275198eb')
|
||||
'4fcee2b4485492dcfdead632275198eb'
|
||||
'1040ae6c10d4a68f89899f94a2318a17')
|
||||
|
||||
|
||||
_kernelname=${pkgbase#linux}
|
||||
|
||||
@ -54,6 +57,11 @@ prepare() {
|
||||
# #36865 fix broken skge network module
|
||||
patch -Np1 -i "${srcdir}/3.11.1-fix-skge.patch"
|
||||
|
||||
# add intel haswell support to intel_pstate
|
||||
# https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/patch/?id=6cdcdb793791f776ea9408581b1242b636d43b37
|
||||
# will be in 3.12
|
||||
patch -Np1 -i "${srcdir}/3.11-haswell-intel_pstate.patch"
|
||||
|
||||
# allow criu without expert option set
|
||||
# patch from fedora
|
||||
patch -Np1 -i "${srcdir}/criu-no-expert.patch"
|
||||
|
Loading…
Reference in New Issue
Block a user