ARM: 8957/1: VDSO: Match ARMv8 timer in cntvct_functional()
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 28 Jan 2020 19:22:13 +0000 (20:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Mar 2020 07:11:58 +0000 (08:11 +0100)
commit1a9e78628d44803a8b146f4c641551d29afaa9b6
tree9fa9d409e986cf546c66bdbf7276c033e78ef6cd
parent881876bee65765a26af68492fd3cd5fd6a599034
ARM: 8957/1: VDSO: Match ARMv8 timer in cntvct_functional()

commit 45939ce292b4b11159719faaf60aba7d58d5fe33 upstream.

It is possible for a system with an ARMv8 timer to run a 32-bit kernel.
When this happens we will unconditionally have the vDSO code remove the
__vdso_gettimeofday and __vdso_clock_gettime symbols because
cntvct_functional() returns false since it does not match that
compatibility string.

Fixes: ecf99a439105 ("ARM: 8331/1: VDSO initialization, mapping, and synchronization")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kernel/vdso.c