diff options
author | Pranith Kumar <bobby.prani@gmail.com> | 2014-07-08 18:26:14 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-09-16 13:08:00 -0400 |
commit | c271d3a957384a162f7a6aae53455d8e8afd1f3e (patch) | |
tree | e1da9794e14232cf6b87a25c86c2cd840d9c7081 /kernel/rcu | |
parent | 949cccdbe6d286544ce3fe170298183eb7ada81c (diff) |
rcu: Use true/false for return in __call_rcu_nocb()
Return true/false instead of 0/1 in __call_rcu_nocb() as this returns a
bool type.
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/tree_plugin.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index 105b0ce3d78f..36c678b898fa 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h | |||
@@ -2123,7 +2123,7 @@ static bool __call_rcu_nocb(struct rcu_data *rdp, struct rcu_head *rhp, | |||
2123 | { | 2123 | { |
2124 | 2124 | ||
2125 | if (!rcu_is_nocb_cpu(rdp->cpu)) | 2125 | if (!rcu_is_nocb_cpu(rdp->cpu)) |
2126 | return 0; | 2126 | return false; |
2127 | __call_rcu_nocb_enqueue(rdp, rhp, &rhp->next, 1, lazy, flags); | 2127 | __call_rcu_nocb_enqueue(rdp, rhp, &rhp->next, 1, lazy, flags); |
2128 | if (__is_kfree_rcu_offset((unsigned long)rhp->func)) | 2128 | if (__is_kfree_rcu_offset((unsigned long)rhp->func)) |
2129 | trace_rcu_kfree_callback(rdp->rsp->name, rhp, | 2129 | trace_rcu_kfree_callback(rdp->rsp->name, rhp, |
@@ -2134,7 +2134,7 @@ static bool __call_rcu_nocb(struct rcu_data *rdp, struct rcu_head *rhp, | |||
2134 | trace_rcu_callback(rdp->rsp->name, rhp, | 2134 | trace_rcu_callback(rdp->rsp->name, rhp, |
2135 | -atomic_long_read(&rdp->nocb_q_count_lazy), | 2135 | -atomic_long_read(&rdp->nocb_q_count_lazy), |
2136 | -atomic_long_read(&rdp->nocb_q_count)); | 2136 | -atomic_long_read(&rdp->nocb_q_count)); |
2137 | return 1; | 2137 | return true; |
2138 | } | 2138 | } |
2139 | 2139 | ||
2140 | /* | 2140 | /* |