rseq: Introduce restartable sequences system call
[linux-2.6-block.git] / init / Kconfig
index 18b151f0ddc1fba93777e1ca9f40b9f0fd072711..33ec06fddaaa21ebef9cdfade6e8cc455b9d90a9 100644 (file)
@@ -1417,6 +1417,29 @@ config ARCH_HAS_MEMBARRIER_CALLBACKS
 config ARCH_HAS_MEMBARRIER_SYNC_CORE
        bool
 
+config RSEQ
+       bool "Enable rseq() system call" if EXPERT
+       default y
+       depends on HAVE_RSEQ
+       select MEMBARRIER
+       help
+         Enable the restartable sequences system call. It provides a
+         user-space cache for the current CPU number value, which
+         speeds up getting the current CPU number from user-space,
+         as well as an ABI to speed up user-space operations on
+         per-CPU data.
+
+         If unsure, say Y.
+
+config DEBUG_RSEQ
+       default n
+       bool "Enabled debugging of rseq() system call" if EXPERT
+       depends on RSEQ && DEBUG_KERNEL
+       help
+         Enable extra debugging checks for the rseq system call.
+
+         If unsure, say N.
+
 config EMBEDDED
        bool "Embedded system"
        option allnoconfig_y