Skip to contentSkip to conversation

rcu/tree: use true/false to set rdp->core_needs_qs

PATCH In review nimisolo 2 participants 2 messages Jan 9, 2016 RCU

lore
Share & tools
lore

nimisolo

author
#0 lore raw

PATCH 1/1 rcu/tree: use true/false to set rdp->core_needs_qs

Maybe it's better to set rdp->core_needs_qs with true/false

---
 kernel/rcu/tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/tree.c +1 -1
index f07343b..0c0d09d 100644
@@ -2377,7 +2377,7 @@ rcu_report_qs_rdp(int cpu, struct rcu_state *rsp, struct rcu_data *rdp)
 	if ((rnp->qsmask & mask) == 0) {
 		raw_spin_unlock_irqrestore(&rnp->lock, flags);
 	} else {
-		rdp->core_needs_qs = 0;
+		rdp->core_needs_qs = false;
 
 		/*
 		 * This GP can't end until cpu checks in, so all of our
Signature · 1 line
2.5.0
#1 lore raw
Quoted 3 lines · nimisolo

Maybe it's better to set rdp->core_needs_qs with true/false

Good catch, but someone beat you by about a month.

To check for future changes, please see branch rcu/dev of:

git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git

Thanx, Paul

Quoted 20 lines
---
 kernel/rcu/tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/tree.c +1 -1
index f07343b..0c0d09d 100644
@@ -2377,7 +2377,7 @@ rcu_report_qs_rdp(int cpu, struct rcu_state *rsp, struct rcu_data *rdp)
 	if ((rnp->qsmask & mask) == 0) {
 		raw_spin_unlock_irqrestore(&rnp->lock, flags);
 	} else {
-		rdp->core_needs_qs = 0;
+		rdp->core_needs_qs = false;
 
 		/*
 		 * This GP can't end until cpu checks in, so all of our
Signature · 1 line
2.5.0