diff options
-rw-r--r-- | Documentation/kernel-parameters.txt | 8 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/rdrand.c | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 43842177b771..30a8ad0dae53 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -2218,10 +2218,10 @@ bytes respectively. Such letter suffixes can also be entirely omitted. | |||
2218 | noreplace-smp [X86-32,SMP] Don't replace SMP instructions | 2218 | noreplace-smp [X86-32,SMP] Don't replace SMP instructions |
2219 | with UP alternatives | 2219 | with UP alternatives |
2220 | 2220 | ||
2221 | nordrand [X86] Disable the direct use of the RDRAND | 2221 | nordrand [X86] Disable kernel use of the RDRAND and |
2222 | instruction even if it is supported by the | 2222 | RDSEED instructions even if they are supported |
2223 | processor. RDRAND is still available to user | 2223 | by the processor. RDRAND and RDSEED are still |
2224 | space applications. | 2224 | available to user space applications. |
2225 | 2225 | ||
2226 | noresume [SWSUSP] Disables resume and restores original swap | 2226 | noresume [SWSUSP] Disables resume and restores original swap |
2227 | space. | 2227 | space. |
diff --git a/arch/x86/kernel/cpu/rdrand.c b/arch/x86/kernel/cpu/rdrand.c index 384df5105fbc..136ac74dee82 100644 --- a/arch/x86/kernel/cpu/rdrand.c +++ b/arch/x86/kernel/cpu/rdrand.c | |||
@@ -27,6 +27,7 @@ | |||
27 | static int __init x86_rdrand_setup(char *s) | 27 | static int __init x86_rdrand_setup(char *s) |
28 | { | 28 | { |
29 | setup_clear_cpu_cap(X86_FEATURE_RDRAND); | 29 | setup_clear_cpu_cap(X86_FEATURE_RDRAND); |
30 | setup_clear_cpu_cap(X86_FEATURE_RDSEED); | ||
30 | return 1; | 31 | return 1; |
31 | } | 32 | } |
32 | __setup("nordrand", x86_rdrand_setup); | 33 | __setup("nordrand", x86_rdrand_setup); |