aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/timers/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/kernel/timers/timer.c')
-rw-r--r--arch/i386/kernel/timers/timer.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/i386/kernel/timers/timer.c b/arch/i386/kernel/timers/timer.c
index a3d6a288088b..7e39ed8e33f8 100644
--- 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)
64 panic("select_timer: Cannot find a suitable timer\n"); 64 panic("select_timer: Cannot find a suitable timer\n");
65 return NULL; 65 return NULL;
66} 66}
67
68int read_current_timer(unsigned long *timer_val)
69{
70 if (cur_timer->read_timer) {
71 *timer_val = cur_timer->read_timer();
72 return 0;
73 }
74 return -1;
75}