lkml.org 
[lkml]   [2015]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH tip/core/rcu 14/24] rcu: Directly drive TASKS_RCU from Kconfig
    Date
    From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>

    Currently, Kconfig will ask the user whether TASKS_RCU should be set.
    This is silly because Kconfig already has all the information that it
    needs to set this parameter. This commit therefore directly drives
    the value of TASKS_RCU via "select" statements. Which means that
    as subsystems require TASKS_RCU, those subsystems will need to add
    "select" statements of their own.

    Reported-by: Ingo Molnar <mingo@kernel.org>
    Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Reviewed-by: Pranith Kumar <bobby.prani@gmail.com>
    ---
    init/Kconfig | 4 +---
    lib/Kconfig.debug | 1 +
    2 files changed, 2 insertions(+), 3 deletions(-)

    diff --git a/init/Kconfig b/init/Kconfig
    index dc24dec60232..73db30a76afa 100644
    --- a/init/Kconfig
    +++ b/init/Kconfig
    @@ -509,7 +509,7 @@ config SRCU
    sections.

    config TASKS_RCU
    - bool "Task_based RCU implementation using voluntary context switch"
    + bool
    default n
    select SRCU
    help
    @@ -517,8 +517,6 @@ config TASKS_RCU
    only voluntary context switch (not preemption!), idle, and
    user-mode execution as quiescent states.

    - If unsure, say N.
    -
    config RCU_STALL_COMMON
    def_bool ( TREE_RCU || PREEMPT_RCU || RCU_TRACE )
    help
    diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
    index e1af93ae246b..c4e1cf04cf57 100644
    --- a/lib/Kconfig.debug
    +++ b/lib/Kconfig.debug
    @@ -1233,6 +1233,7 @@ config RCU_TORTURE_TEST
    depends on DEBUG_KERNEL
    select TORTURE_TEST
    select SRCU
    + select TASKS_RCU
    default n
    help
    This option provides a kernel module that runs torture tests
    --
    1.8.1.5


    \
     
     \ /
      Last update: 2015-05-13 00:41    [W:4.193 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site