git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
arch
/
i386
/
kernel
/
timers
/
timer.c
diff --git
a/arch/i386/kernel/timers/timer.c
b/arch/i386/kernel/timers/timer.c
index
a3d6a28
..
7e39ed8
100644
(file)
--- a/
arch/i386/kernel/timers/timer.c
+++ b/
arch/i386/kernel/timers/timer.c
@@
-64,3
+64,12
@@
struct timer_opts* __init select_timer(void)
panic("select_timer: Cannot find a suitable timer\n");
return NULL;
}
+
+int read_current_timer(unsigned long *timer_val)
+{
+ if (cur_timer->read_timer) {
+ *timer_val = cur_timer->read_timer();
+ return 0;
+ }
+ return -1;
+}