[PATCH] Platform SMIs and their interferance with tsc based delay calibration
[safe/jmp/linux-2.6] / arch / i386 / kernel / timers / timer.c
index a3d6a28..7e39ed8 100644 (file)
@@ -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;
+}