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
-  Lines: 17
-  Date:
Fri Jul 10 14:01:13 1998
-  Orig file: 
v2.1.108/linux/drivers/char/random.c
-  Orig date: 
Wed Jun 24 22:54:05 1998
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