Skip to contentSkip to conversation

rcu: fix incorrect notes for code

PATCH In review Liu Ping Fan 2 participants 2 messages Feb 24, 2014 RCU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rcu: fix incorrect notes for code

-/* Is the specified CPU a no-CPUs CPU? */
+/* Is the specified CPU a no-CBs CPU? */
bool rcu_is_nocb_cpu(int cpu)

---
 kernel/rcu/tree_plugin.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/tree_plugin.h +1 -1
index 6e2ef4b..ec6cb76 100644
@@ -2101,7 +2101,7 @@ static void rcu_init_one_nocb(struct rcu_node *rnp)
 	init_waitqueue_head(&rnp->nocb_gp_wq[1]);
 }
 
-/* Is the specified CPU a no-CPUs CPU? */
+/* Is the specified CPU a no-CBs CPU? */
 bool rcu_is_nocb_cpu(int cpu)
 {
 	if (have_rcu_nocb_mask)
Signature · 1 line
1.8.1.4
#1 lore raw
Quoted 5 lines · Liu Ping Fan
kernel/rcu/tree_plugin.h +1 -1
-/* Is the specified CPU a no-CPUs CPU? */
+/* Is the specified CPU a no-CBs CPU? */
 bool rcu_is_nocb_cpu(int cpu)

Good catch, queued for 3.16.

Thanx, Paul

Quoted 20 lines
---
 kernel/rcu/tree_plugin.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/tree_plugin.h +1 -1
index 6e2ef4b..ec6cb76 100644
@@ -2101,7 +2101,7 @@ static void rcu_init_one_nocb(struct rcu_node *rnp)
 	init_waitqueue_head(&rnp->nocb_gp_wq[1]);
 }
 
-/* Is the specified CPU a no-CPUs CPU? */
+/* Is the specified CPU a no-CBs CPU? */
 bool rcu_is_nocb_cpu(int cpu)
 {
 	if (have_rcu_nocb_mask)
Signature · 1 line
1.8.1.4