patch-2.1.109 linux/arch/i386/kernel/time.c

Next file: linux/arch/i386/kernel/traps.c
Previous file: linux/arch/i386/kernel/signal.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.108/linux/arch/i386/kernel/time.c linux/arch/i386/kernel/time.c
@@ -25,6 +25,7 @@
 #include <linux/init.h>
 #include <linux/smp.h>
 
+#include <asm/processor.h>
 #include <asm/uaccess.h>
 #include <asm/io.h>
 #include <asm/irq.h>
@@ -534,7 +535,7 @@
  */
 #ifndef CONFIG_APM
 	/* If we have the CPU hardware time counters, use them */
-	if (boot_cpu_data.x86_capability & 16) {
+	if (boot_cpu_data.x86_capability & X86_FEATURE_TSC) { 
 		do_gettimeoffset = do_fast_gettimeoffset;
 		do_get_fast_time = do_x86_get_fast_time;
 

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