xref: /linux/lib/vdso/Kconfig (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
100b26474SVincenzo Frascino# SPDX-License-Identifier: GPL-2.0
200b26474SVincenzo Frascino
300b26474SVincenzo Frascinoconfig HAVE_GENERIC_VDSO
400b26474SVincenzo Frascino	bool
500b26474SVincenzo Frascino
600b26474SVincenzo Frascinoif HAVE_GENERIC_VDSO
700b26474SVincenzo Frascino
800b26474SVincenzo Frascinoconfig GENERIC_GETTIMEOFDAY
900b26474SVincenzo Frascino	bool
1000b26474SVincenzo Frascino	help
1100b26474SVincenzo Frascino	  This is a generic implementation of gettimeofday vdso.
1200b26474SVincenzo Frascino	  Each architecture that enables this feature has to
1300b26474SVincenzo Frascino	  provide the fallback implementation.
1400b26474SVincenzo Frascino
1500b26474SVincenzo Frascinoconfig GENERIC_VDSO_32
1600b26474SVincenzo Frascino	bool
1700b26474SVincenzo Frascino	depends on GENERIC_GETTIMEOFDAY && !64BIT
1800b26474SVincenzo Frascino	help
1900b26474SVincenzo Frascino	  This config option helps to avoid possible performance issues
2000b26474SVincenzo Frascino	  in 32 bit only architectures.
2100b26474SVincenzo Frascino
2200b26474SVincenzo Frascinoconfig GENERIC_COMPAT_VDSO
2300b26474SVincenzo Frascino	bool
2400b26474SVincenzo Frascino	help
2500b26474SVincenzo Frascino	  This config option enables the compat VDSO layer.
2600b26474SVincenzo Frascino
27660fd04fSThomas Gleixnerconfig GENERIC_VDSO_TIME_NS
28660fd04fSThomas Gleixner	bool
29660fd04fSThomas Gleixner	help
30660fd04fSThomas Gleixner	  Selected by architectures which support time namespaces in the
31660fd04fSThomas Gleixner	  VDSO
32660fd04fSThomas Gleixner
330c68458bSAdrian Hunterconfig GENERIC_VDSO_OVERFLOW_PROTECT
340c68458bSAdrian Hunter	bool
350c68458bSAdrian Hunter	help
360c68458bSAdrian Hunter	  Select to add multiplication overflow protection to the VDSO
370c68458bSAdrian Hunter	  time getter functions for the price of an extra conditional
380c68458bSAdrian Hunter	  in the hotpath.
390c68458bSAdrian Hunter
4000b26474SVincenzo Frascinoendif
41*4ad10a5fSJason A. Donenfeld
42*4ad10a5fSJason A. Donenfeldconfig VDSO_GETRANDOM
43*4ad10a5fSJason A. Donenfeld	bool
44*4ad10a5fSJason A. Donenfeld	help
45*4ad10a5fSJason A. Donenfeld	  Selected by architectures that support vDSO getrandom().
46