diff options
Diffstat (limited to 'arch/x86/kernel/cpu/rdrand.c')
| -rw-r--r-- | arch/x86/kernel/cpu/rdrand.c | 15 | 
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/x86/kernel/cpu/rdrand.c b/arch/x86/kernel/cpu/rdrand.c index 88db010845c..136ac74dee8 100644 --- a/arch/x86/kernel/cpu/rdrand.c +++ b/arch/x86/kernel/cpu/rdrand.c @@ -27,24 +27,11 @@  static int __init x86_rdrand_setup(char *s)  {  	setup_clear_cpu_cap(X86_FEATURE_RDRAND); +	setup_clear_cpu_cap(X86_FEATURE_RDSEED);  	return 1;  }  __setup("nordrand", x86_rdrand_setup); -/* We can't use arch_get_random_long() here since alternatives haven't run */ -static inline int rdrand_long(unsigned long *v) -{ -	int ok; -	asm volatile("1: " RDRAND_LONG "\n\t" -		     "jc 2f\n\t" -		     "decl %0\n\t" -		     "jnz 1b\n\t" -		     "2:" -		     : "=r" (ok), "=a" (*v) -		     : "0" (RDRAND_RETRY_LOOPS)); -	return ok; -} -  /*   * Force a reseed cycle; we are architecturally guaranteed a reseed   * after no more than 512 128-bit chunks of random data.  This also  | 
