git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Platform SMIs and their interferance with tsc based delay calibration
[safe/jmp/linux-2.6]
/
arch
/
i386
/
kernel
/
timers
/
common.c
diff --git
a/arch/i386/kernel/timers/common.c
b/arch/i386/kernel/timers/common.c
index
8e20121
..
b38cc0d
100644
(file)
--- a/
arch/i386/kernel/timers/common.c
+++ b/
arch/i386/kernel/timers/common.c
@@
-139,6
+139,15
@@
bad_calibration:
}
#endif
+
+unsigned long read_timer_tsc(void)
+{
+ unsigned long retval;
+ rdtscl(retval);
+ return retval;
+}
+
+
/* calculate cpu_khz */
void init_cpu_khz(void)
{