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>
Fri, 20 Mar 2020 08:07:58 +0000 (09:07 +0100)
commit3a4c51d02e70ca4af86cd5b50c4aef3007e04e03
treee2f8f41fe418122f57d69088f3b240197e3ccaf3
parente06aeb9f3da6c08edbb3eb599b22d7a573ffc89f
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