vdso: Add CONFIG_GENERIC_VDSO_OVERFLOW_PROTECT
[linux-2.6-block.git] / lib / vdso / Kconfig
CommitLineData
00b26474
VF
1# SPDX-License-Identifier: GPL-2.0
2
3config HAVE_GENERIC_VDSO
4 bool
5
6if HAVE_GENERIC_VDSO
7
8config GENERIC_GETTIMEOFDAY
9 bool
10 help
11 This is a generic implementation of gettimeofday vdso.
12 Each architecture that enables this feature has to
13 provide the fallback implementation.
14
15config GENERIC_VDSO_32
16 bool
17 depends on GENERIC_GETTIMEOFDAY && !64BIT
18 help
19 This config option helps to avoid possible performance issues
20 in 32 bit only architectures.
21
22config GENERIC_COMPAT_VDSO
23 bool
24 help
25 This config option enables the compat VDSO layer.
26
660fd04f
TG
27config GENERIC_VDSO_TIME_NS
28 bool
29 help
30 Selected by architectures which support time namespaces in the
31 VDSO
32
0c68458b
AH
33config GENERIC_VDSO_OVERFLOW_PROTECT
34 bool
35 help
36 Select to add multiplication overflow protection to the VDSO
37 time getter functions for the price of an extra conditional
38 in the hotpath.
39
00b26474 40endif