summaryrefslogtreecommitdiff
path: root/lib/vdso/Kconfig
blob: 2436c20ee0efe82488fdbfda48c2484dc2aa892f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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.