#define BPIALL __ACCESS_CP15(c7, 0, c5, 6)
#define ICIALLU __ACCESS_CP15(c7, 0, c5, 0)
-#define CNTVCT __ACCESS_CP15_64(1, c14)
-
extern unsigned long cr_alignment; /* defined in entry-armv.S */
static inline unsigned long get_cr(void)
#include <linux/compiler.h>
#include <linux/hrtimer.h>
#include <linux/time.h>
+#include <asm/arch_timer.h>
#include <asm/barrier.h>
#include <asm/bug.h>
-#include <asm/cp15.h>
#include <asm/page.h>
#include <asm/unistd.h>
#include <asm/vdso_datapage.h>
u64 cycle_now;
u64 nsec;
- isb();
- cycle_now = read_sysreg(CNTVCT);
+ cycle_now = arch_counter_get_cntvct();
cycle_delta = (cycle_now - vdata->cs_cycle_last) & vdata->cs_mask;