arm64: arch_timer: Enable CNTVCT_EL0 trap if workaround is enabled
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 1 Feb 2017 12:07:15 +0000 (12:07 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 7 Apr 2017 10:22:09 +0000 (11:22 +0100)
commita86bd139f2ae02f960caeb0c1dd5f871d3e087cd
tree63271d9e67e1cb7ac7e5784052d815355d750061
parentbee67c53a990452c4f3c7a0e9cebfecb5acfbde3
arm64: arch_timer: Enable CNTVCT_EL0 trap if workaround is enabled

Userspace being allowed to use read CNTVCT_EL0 anytime (and not
only in the VDSO), we need to enable trapping whenever a cntvct
workaround is enabled on a given CPU.

Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/clocksource/arm_arch_timer.c