History

rcu: Make PREEMPT_RCU be a modifier to TREE_RCU

Currently PREEMPT_RCU and TREE_RCU are mutually exclusive Kconfig options. But PREEMPT_RCU actually specifies a kind of TREE_RCU, namely a preemptible TREE_RCU. This commit therefore makes PREEMPT_RCU be a modifer to the TREE_RCU Kconfig option. This has the benefit of simplifying several of the #if expressions that formerly needed to check both, but now need only check one or the other.

Lai Jiangshan committed 7 years ago

Commit b3e627d1 parent 03bd2987 files · +14 −14Browse files

Showing the changes to include/linux (1 of 7 files). Show all

Unified · Split

include/linux/rcupdate.h+2−2
@@ -167,7 +167,7 @@ do { \ · 166 unmodified lines
167167 * TREE_RCU and rcu_barrier_() primitives in TINY_RCU.
168168 */
169169
170−#if defined(CONFIG_TREE_RCU) || defined(CONFIG_PREEMPT_RCU)
170+#if defined(CONFIG_TREE_RCU)
171171 #include <linux/rcutree.h>
172172 #elif defined(CONFIG_TINY_RCU)
173173 #include <linux/rcutiny.h>
@@ -601,7 +601,7 @@ do { \ · 427 unmodified lines
601601 * read-side critical section that would block in a !PREEMPT kernel.
602602 * But if you want the full story, read on!
603603 *
604− * In non-preemptible RCU implementations (TREE_RCU and TINY_RCU),
604+ * In non-preemptible RCU implementations (pure TREE_RCU and TINY_RCU),
605605 * it is illegal to block while in an RCU read-side critical section.
606606 * In preemptible RCU implementations (PREEMPT_RCU) in CONFIG_PREEMPTION
607607 * kernel builds, RCU read-side critical sections may be preempted,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t