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
- Lines: 23
- Date:
Mon Jul 10 13:21:50 2000
- Orig file:
v2.4.0-test2/linux/include/asm-i386/timex.h
- Orig date:
Wed Aug 18 16:43:29 1999
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)