25 lines
687 B
Diff
25 lines
687 B
Diff
|
From 9ac45f2a4f0de76365e7b12414500f3a12bf028e Mon Sep 17 00:00:00 2001
|
||
|
From: Arjan van de Ven <arjan@linux.intel.com>
|
||
|
Date: Tue, 29 Mar 2016 14:29:24 -0600
|
||
|
Subject: [PATCH 18/22] rdrand
|
||
|
|
||
|
---
|
||
|
arch/x86/kernel/cpu/rdrand.c | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/arch/x86/kernel/cpu/rdrand.c b/arch/x86/kernel/cpu/rdrand.c
|
||
|
index cfa97ff6..cd7aa166 100644
|
||
|
--- a/arch/x86/kernel/cpu/rdrand.c
|
||
|
+++ b/arch/x86/kernel/cpu/rdrand.c
|
||
|
@@ -48,6 +48,7 @@ void x86_init_rdrand(struct cpuinfo_x86 *c)
|
||
|
if (!cpu_has(c, X86_FEATURE_RDRAND))
|
||
|
return;
|
||
|
|
||
|
+ return;
|
||
|
for (i = 0; i < SANITY_CHECK_LOOPS; i++) {
|
||
|
if (!rdrand_long(&tmp)) {
|
||
|
clear_cpu_cap(c, X86_FEATURE_RDRAND);
|
||
|
--
|
||
|
2.11.0
|
||
|
|