patch-2.4.0-test3 linux/include/asm-i386/timex.h

Next file: linux/include/asm-ia64/bitops.h
Previous file: linux/include/asm-i386/spinlock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/include/asm-i386/timex.h linux/include/asm-i386/timex.h
@@ -29,7 +29,7 @@
  * four billion cycles just basically sounds like a good idea,
  * regardless of how fast the machine is. 
  */
-typedef unsigned long cycles_t;
+typedef unsigned long long cycles_t;
 
 extern cycles_t cacheflush_time;
 
@@ -38,10 +38,10 @@
 #ifndef CONFIG_X86_TSC
 	return 0;
 #else
-	unsigned long eax, edx;
+	unsigned long long ret;
 
-	rdtsc(eax,edx);
-	return eax;
+	rdtscll(ret);
+	return ret;
 #endif
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)