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

From: Peter Zijlstra
Date: Thu Apr 13 2017 - 05:48:50 EST


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?

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.