diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-03-25 09:59:38 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-04-18 11:38:22 -0700 |
commit | d8be81735aa89413b333de488251f0e64e2be591 (patch) | |
tree | 3c7743a43efeb407aa51b2a8c699de19a9e90500 /kernel/rcu/rcutorture.c | |
parent | dde8da6cffe73dab81aca3855e717e40db35178c (diff) | |
download | linux-stable-d8be81735aa89413b333de488251f0e64e2be591.tar.gz linux-stable-d8be81735aa89413b333de488251f0e64e2be591.tar.bz2 linux-stable-d8be81735aa89413b333de488251f0e64e2be591.zip |
srcu: Create a tiny SRCU
In response to automated complaints about modifications to SRCU
increasing its size, this commit creates a tiny SRCU that is
used in SMP=n && PREEMPT=n builds.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/rcutorture.c')
-rw-r--r-- | kernel/rcu/rcutorture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index cccc417a8135..98591e16db1a 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -559,6 +559,7 @@ static void srcu_torture_barrier(void) static void srcu_torture_stats(void) { +#ifdef CONFIG_TREE_SRCU int cpu; int idx = srcu_ctlp->completed & 0x1; @@ -587,6 +588,7 @@ static void srcu_torture_stats(void) pr_cont(" %d(%ld,%ld)", cpu, c0, c1); } pr_cont("\n"); +#endif } static void srcu_torture_synchronize_expedited(void) |