public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Pranith Kumar <bobby.prani@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Michal Hocko <mhocko@suse.cz>,
	Josh Triplett <josh@joshtriplett.org>,
	Johannes Weiner <hannes@cmpxchg.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Bertrand Jacquin <beber@meleeweb.net>,
	"Luis R. Rodriguez" <mcgrof@suse.com>,
	Andy Lutomirski <luto@amacapital.net>,
	Clark Williams <clark.williams@gmail.com>,
	open list <linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCH] rcu: config: Remove prompt for RCU implementation
Date: Tue, 21 Apr 2015 18:18:21 -0700	[thread overview]
Message-ID: <20150422011821.GR5561@linux.vnet.ibm.com> (raw)
In-Reply-To: <1429651783-7754-1-git-send-email-bobby.prani@gmail.com>

On Tue, Apr 21, 2015 at 05:29:42PM -0400, Pranith Kumar wrote:
> The RCU implementation which is chosen is dependent on PREEMPT and SMP config
> options and is not really a user-selectable choice. The following change will
> remove the menu entry and will be derived from the above two options.
> 
> Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>

Hmmm...  I guess that there isn't much point in calling something a
"choice" when it hasn't really been a choice for quite a few years
now.  I queued this, and have started testing it.

							Thanx, Paul

> ---
>  init/Kconfig | 18 ++++++------------
>  1 file changed, 6 insertions(+), 12 deletions(-)
> 
> diff --git a/init/Kconfig b/init/Kconfig
> index 0b37750..7707e4a 100644
> --- a/init/Kconfig
> +++ b/init/Kconfig
> @@ -463,13 +463,9 @@ endmenu # "CPU/Task time and stats accounting"
> 
>  menu "RCU Subsystem"
> 
> -choice
> -	prompt "RCU Implementation"
> -	default TREE_RCU
> -
>  config TREE_RCU
> -	bool "Tree-based hierarchical RCU"
> -	depends on !PREEMPT && SMP
> +	bool
> +	default y if !PREEMPT && SMP
>  	help
>  	  This option selects the RCU implementation that is
>  	  designed for very large SMP system with hundreds or
> @@ -477,8 +473,8 @@ config TREE_RCU
>  	  smaller systems.
> 
>  config PREEMPT_RCU
> -	bool "Preemptible tree-based hierarchical RCU"
> -	depends on PREEMPT
> +	bool
> +	default y if PREEMPT
>  	help
>  	  This option selects the RCU implementation that is
>  	  designed for very large SMP systems with hundreds or
> @@ -489,16 +485,14 @@ config PREEMPT_RCU
>  	  Select this option if you are unsure.
> 
>  config TINY_RCU
> -	bool "UP-only small-memory-footprint RCU"
> -	depends on !PREEMPT && !SMP
> +	bool
> +	default y if !PREEMPT && !SMP
>  	help
>  	  This option selects the RCU implementation that is
>  	  designed for UP systems from which real-time response
>  	  is not required.  This option greatly reduces the
>  	  memory footprint of RCU.
> 
> -endchoice
> -
>  config RCU_EXPERT
>  	bool "Make expert-level adjustments to RCU configuration"
>  	default n
> -- 
> 1.9.1
> 


      reply	other threads:[~2015-04-22  1:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-21 21:29 [RFC PATCH] rcu: config: Remove prompt for RCU implementation Pranith Kumar
2015-04-22  1:18 ` Paul E. McKenney [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150422011821.GR5561@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=beber@meleeweb.net \
    --cc=bobby.prani@gmail.com \
    --cc=clark.williams@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=hannes@cmpxchg.org \
    --cc=josh@joshtriplett.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=mcgrof@suse.com \
    --cc=mhocko@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox