1
0
Fork 0
alistair23-linux/arch/mips/include/asm/vdso
Vincenzo Frascino 8a1bef4193
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: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Tested-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: linux-mips@vger.kernel.org
2019-10-18 14:29:16 -07:00
..
gettimeofday.h mips: vdso: Fix __arch_get_hw_counter() 2019-10-18 14:29:16 -07:00
vdso.h mips: fix vdso32 build, again 2019-08-06 14:32:15 -07:00
vsyscall.h mips: Add support for generic vDSO 2019-07-25 21:45:05 -07:00