patch-2.1.109 linux/net/core/profile.c

Next file: linux/net/ipx/af_ipx.c
Previous file: linux/net/802/tr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.108/linux/net/core/profile.c linux/net/core/profile.c
@@ -13,6 +13,7 @@
 #include <linux/inet.h>
 #include <net/checksum.h>
 
+#include <asm/processor.h>
 #include <asm/uaccess.h>
 #include <asm/system.h>
 
@@ -276,7 +277,7 @@
 
 	printk("Evaluating net profiler cost ...");
 #if CPU == 586 || CPU == 686
-	if (!(boot_cpu_data.x86_capability & 16)) {
+	if (!(boot_cpu_data.x86_capability & X86_FEATURE_TSC)) {
 		printk(KERN_ERR "Sorry, your CPU does not support TSC. Net profiler disabled.\n");
 		return -1;
 	}

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