diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2019-04-08 16:49:01 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2019-04-30 16:09:07 +0100 |
commit | 1f5b62f09f6b314c8d70b9de5182dae4de1f94da (patch) | |
tree | 08a776abbfc1dad82ae646b908fc8ad28f100c59 /arch/arm/include/asm | |
parent | 6989303a3b2d864fd8e17d3fa3365d3e9649a598 (diff) | |
download | linux-stable-1f5b62f09f6b314c8d70b9de5182dae4de1f94da.tar.gz linux-stable-1f5b62f09f6b314c8d70b9de5182dae4de1f94da.tar.bz2 linux-stable-1f5b62f09f6b314c8d70b9de5182dae4de1f94da.zip |
ARM: vdso: Remove dependency with the arch_timer driver internals
The VDSO code uses the kernel helper that was originally designed
to abstract the access between 32 and 64bit systems. It worked so
far because this function is declared as 'inline'.
As we're about to revamp that part of the code, the VDSO would
break. Let's fix it by doing what should have been done from
the start, a proper system register access.
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r-- | arch/arm/include/asm/cp15.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/cp15.h b/arch/arm/include/asm/cp15.h index 07e27f212dc7..d2453e2d3f1f 100644 --- a/arch/arm/include/asm/cp15.h +++ b/arch/arm/include/asm/cp15.h @@ -68,6 +68,8 @@ #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) |