]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.38.8/x86-cpufeature-update-cpu-feature-rdrnd-to-rdrand.patch
drop drm patch
[thirdparty/kernel/stable-queue.git] / releases / 2.6.38.8 / x86-cpufeature-update-cpu-feature-rdrnd-to-rdrand.patch
CommitLineData
2ce07e76
GKH
1From 7ccafc5f75c87853f3c49845d5a884f2376e03ce Mon Sep 17 00:00:00 2001
2From: Kees Cook <kees.cook@canonical.com>
3Date: Tue, 24 May 2011 16:29:26 -0700
4Subject: x86, cpufeature: Update CPU feature RDRND to RDRAND
5
6From: Kees Cook <kees.cook@canonical.com>
7
8commit 7ccafc5f75c87853f3c49845d5a884f2376e03ce upstream.
9
10The Intel manual changed the name of the CPUID bit to match the
11instruction name. We should follow suit for sanity's sake. (See Intel SDM
12Volume 2, Table 3-20 "Feature Information Returned in the ECX Register".)
13
14[ hpa: we can only do this at this time because there are currently no CPUs
15 with this feature on the market, hence this is pre-hardware enabling.
16 However, Cc:'ing stable so that stable can present a consistent ABI. ]
17
18Signed-off-by: Kees Cook <kees.cook@canonical.com>
19Link: http://lkml.kernel.org/r/20110524232926.GA27728@outflux.net
20Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
21Cc: Fenghua Yu <fenghua.yu@intel.com>
22Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
23
24---
25 arch/x86/include/asm/cpufeature.h | 2 +-
26 1 file changed, 1 insertion(+), 1 deletion(-)
27
28--- a/arch/x86/include/asm/cpufeature.h
29+++ b/arch/x86/include/asm/cpufeature.h
30@@ -125,7 +125,7 @@
31 #define X86_FEATURE_OSXSAVE (4*32+27) /* "" XSAVE enabled in the OS */
32 #define X86_FEATURE_AVX (4*32+28) /* Advanced Vector Extensions */
33 #define X86_FEATURE_F16C (4*32+29) /* 16-bit fp conversions */
34-#define X86_FEATURE_RDRND (4*32+30) /* The RDRAND instruction */
35+#define X86_FEATURE_RDRAND (4*32+30) /* The RDRAND instruction */
36 #define X86_FEATURE_HYPERVISOR (4*32+31) /* Running on a hypervisor */
37
38 /* VIA/Cyrix/Centaur-defined CPU features, CPUID level 0xC0000001, word 5 */