Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d137d9db authored by Vincenzo Frascino's avatar Vincenzo Frascino Committed by Alistair Delva
Browse files

UPSTREAM: mips: vdso: Fix __arch_get_hw_counter()



On some MIPS variants (e.g. MIPS r1), vDSO clock_mode is set to
VDSO_CLOCK_NONE.

When VDSO_CLOCK_NONE is set the expected kernel behavior is to fallback
on syscalls. To do that the generic vDSO library expects UULONG_MAX as
return value of __arch_get_hw_counter().

Fix __arch_get_hw_counter() on MIPS defining a __VDSO_USE_SYSCALL case
that addressed the described scenario.

Reported-by: default avatarMaxime Bizon <mbizon@freebox.fr>
Signed-off-by: default avatarVincenzo Frascino <vincenzo.frascino@arm.com>
Tested-by: default avatarMaxime Bizon <mbizon@freebox.fr>
Signed-off-by: default avatarPaul Burton <paulburton@kernel.org>
Cc: linux-mips@vger.kernel.org
(cherry picked from commit 8a1bef4193e81c8afae4d2f107f1c09c8ce89470)
Signed-off-by: default avatarMark Salyzyn <salyzyn@google.com>
Bug: 154668398
Change-Id: Iae1fcf49f84b14944d67ff5ffe82c6ba6c79955c
parent f5a2c8a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment