@@ -16,11 +16,13 @@
#ifndef __ASM_TIMEX_H
#define __ASM_TIMEX_H
+#include <asm/arch_timer.h>
+
/*
* Use the current timer as a cycle counter since this is what we use for
* the delay loop.
*/
-#define get_cycles() ({ cycles_t c; read_current_timer(&c); c; })
+#define get_cycles() arch_counter_get_cntvct()
#include <asm-generic/timex.h>
@@ -38,6 +38,7 @@
#include <asm/thread_info.h>
#include <asm/stacktrace.h>
+#include <asm/arch_timer.h>
#ifdef CONFIG_SMP
unsigned long profile_pc(struct pt_regs *regs)
@@ -70,7 +71,7 @@ unsigned long long notrace sched_clock(void)
int read_current_timer(unsigned long *timer_value)
{
- *timer_value = arch_timer_read_counter();
+ *timer_value = arch_counter_get_cntvct();
return 0;
}