Commit 8008e129dc90ff4f7a56cb033d6bd042afe3ed52

Authored by Paul E. McKenney
1 parent b15a2e7d16

rcu: Drive configuration directly from SMP and PREEMPT

This commit eliminates the possibility of running TREE_PREEMPT_RCU
when SMP=n and of running TINY_RCU when PREEMPT=y.  People who really
want these combinations can hand-edit init/Kconfig, but eliminating
them as choices for production systems reduces the amount of testing
required.  It will also allow cutting out a few #ifdefs.

Note that running TREE_RCU and TINY_RCU on single-CPU systems using
SMP-built kernels is still supported.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

... ... @@ -391,7 +391,7 @@
391 391  
392 392 config TREE_PREEMPT_RCU
393 393 bool "Preemptible tree-based hierarchical RCU"
394   - depends on PREEMPT
  394 + depends on PREEMPT && SMP
395 395 help
396 396 This option selects the RCU implementation that is
397 397 designed for very large SMP systems with hundreds or
... ... @@ -401,7 +401,7 @@
401 401  
402 402 config TINY_RCU
403 403 bool "UP-only small-memory-footprint RCU"
404   - depends on !SMP
  404 + depends on !PREEMPT && !SMP
405 405 help
406 406 This option selects the RCU implementation that is
407 407 designed for UP systems from which real-time response
... ... @@ -410,7 +410,7 @@
410 410  
411 411 config TINY_PREEMPT_RCU
412 412 bool "Preemptible UP-only small-memory-footprint RCU"
413   - depends on !SMP && PREEMPT
  413 + depends on PREEMPT && !SMP
414 414 help
415 415 This option selects the RCU implementation that is designed
416 416 for real-time UP systems. This option greatly reduces the