diff options
author | Olof Johansson <olof@lixom.net> | 2014-12-05 08:32:16 +0100 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-12-05 08:32:16 +0100 |
commit | 6b34df9e30c8b596f9d0173ca17714076474458e (patch) | |
tree | a47b26e4ebb4d0aea10b3abbb620efa2a004ba8c /arch/arm64/include | |
parent | Merge tag 'tegra-for-3.19-iommu' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
parent | clocksource: arch_timer: Allow the device tree to specify uninitialized timer... (diff) | |
download | linux-6b34df9e30c8b596f9d0173ca17714076474458e.tar.xz linux-6b34df9e30c8b596f9d0173ca17714076474458e.zip |
Merge branch 'clocksource/physical-timers' into next/drivers
* clocksource/physical-timers:
clocksource: arch_timer: Allow the device tree to specify uninitialized timer registers
clocksource: arch_timer: Fix code to use physical timers when requested
Diffstat (limited to 'arch/arm64/include')
-rw-r--r-- | arch/arm64/include/asm/arch_timer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/arch_timer.h b/arch/arm64/include/asm/arch_timer.h index f19097134b02..b1fa4e614718 100644 --- a/arch/arm64/include/asm/arch_timer.h +++ b/arch/arm64/include/asm/arch_timer.h @@ -104,6 +104,15 @@ static inline void arch_timer_set_cntkctl(u32 cntkctl) asm volatile("msr cntkctl_el1, %0" : : "r" (cntkctl)); } +static inline u64 arch_counter_get_cntpct(void) +{ + /* + * AArch64 kernel and user space mandate the use of CNTVCT. + */ + BUG(); + return 0; +} + static inline u64 arch_counter_get_cntvct(void) { u64 cval; |