]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - init/Kconfig
rcu: Make SRCU optional by using CONFIG_SRCU
[mirror_ubuntu-zesty-kernel.git] / init / Kconfig
index 9afb971497f4c9972b0dcf14071edf9ef81320be..f085969ba340bfdc21e2a8ba16a6eb4c8feb4c1a 100644 (file)
@@ -501,9 +501,17 @@ config TINY_RCU
 
 endchoice
 
+config SRCU
+       bool
+       help
+         This option selects the sleepable version of RCU. This version
+         permits arbitrary sleeping or blocking within RCU read-side critical
+         sections.
+
 config TASKS_RCU
        bool "Task_based RCU implementation using voluntary context switch"
        default n
+       select SRCU
        help
          This option enables a task-based RCU implementation that uses
          only voluntary context switch (not preemption!), idle, and
@@ -1595,6 +1603,7 @@ config PERF_EVENTS
        depends on HAVE_PERF_EVENTS
        select ANON_INODES
        select IRQ_WORK
+       select SRCU
        help
          Enable kernel support for various performance events provided
          by software and hardware.