Re: [PATCH tip/core/rcu 37/40] srcu: Create a tiny SRCU

From: Paul E. McKenney
Date: Thu Apr 13 2017 - 12:30:42 EST


On Thu, Apr 13, 2017 at 11:48:30AM +0200, Peter Zijlstra wrote:
> On Wed, Apr 12, 2017 at 10:40:22AM -0700, Paul E. McKenney wrote:
> > In response to automated complaints about modifications to SRCU
> > increasing its size, this commit creates a tiny SRCU that is
> > used in SMP=y && PREEMPT=n builds.
>
> You mean SMP=n && PREEMPT=n, right?

I do, thank you for spotting this! Fixed.

Thanx, Paul

> config TINY_RCU
> bool
> default y if !PREEMPT && !SMP
>
> > +config TINY_SRCU
> > + bool
> > + default y if TINY_RCU
> > + help
> > + This option selects the single-CPU non-preemptible version of SRCU.
>