summaryrefslogtreecommitdiff
path: root/lib/vdso/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vdso/Kconfig')
-rw-r--r--lib/vdso/Kconfig35
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/vdso/Kconfig b/lib/vdso/Kconfig
new file mode 100644
index 000000000..2436c20ee
--- /dev/null
+++ b/lib/vdso/Kconfig
@@ -0,0 +1,35 @@
+# SPDX-License-Identifier: GPL-2.0
+
+config VDSO_DATASTORE
+ bool
+
+config GENERIC_GETTIMEOFDAY
+ bool
+ select VDSO_DATASTORE
+ help
+ This is a generic implementation of gettimeofday vdso.
+ Each architecture that enables this feature has to
+ provide the fallback implementation.
+
+config GENERIC_VDSO_OVERFLOW_PROTECT
+ bool
+ help
+ Select to add multiplication overflow protection to the VDSO
+ time getter functions for the price of an extra conditional
+ in the hotpath.
+
+config VDSO_GETRANDOM
+ bool
+ select VDSO_DATASTORE
+ help
+ Selected by architectures that support vDSO getrandom().
+
+config VDSO_UNALIGNED_PACKED
+ bool
+ default !HAVE_EFFICIENT_UNALIGNED_ACCESS
+ help
+ Use packed structs rather than memcpy() in include/vdso/unaligned.h
+ for unaligned memory accesses. Enabled by default when the
+ architecture does not have efficient unaligned accesses, as GCC may
+ emit stack spills or out-of-line memcpy() calls instead of inlining
+ byte shifts.