patch-2.1.109 linux/drivers/char/random.c

Next file: linux/drivers/char/rocket.c
Previous file: linux/drivers/char/lp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.108/linux/drivers/char/random.c linux/drivers/char/random.c
@@ -243,6 +243,7 @@
 #include <linux/poll.h>
 #include <linux/init.h>
 
+#include <asm/processor.h>
 #include <asm/uaccess.h>
 #include <asm/irq.h>
 #include <asm/io.h>
@@ -701,7 +702,7 @@
 	begin_benchmark(&timer_benchmark);
 #endif
 #if defined (__i386__)
-	if (boot_cpu_data.x86_capability & 16) {
+	if (boot_cpu_data.x86_capability & X86_FEATURE_TSC) {
 		__u32 high;
 		__asm__(".byte 0x0f,0x31"
 			:"=a" (time), "=d" (high));

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov