aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree_plugin.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paul.mckenney@linaro.org>2012-01-12 14:01:14 -0500
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-02-21 12:03:44 -0500
commit30fbcc90b02187c55c57ff0ecf57cecbd487d694 (patch)
tree866824e1972d900ceda045c93a3958c74ffbf1e9 /kernel/rcutree_plugin.h
parent1aa03f1188f7b0b85df2de602b33ee7b6fab8e00 (diff)
rcu: Clean up straggling rcu_preempt_needs_cpu() name
The recent updates to RCU_CPU_FAST_NO_HZ have an rcu_needs_cpu() that does more than just check for callbacks, so get the name for rcu_preempt_needs_cpu() consistent with that change, now calling it rcu_preempt_cpu_has_callbacks(). Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree_plugin.h')
-rw-r--r--kernel/rcutree_plugin.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h
index f8e6dcc91860..297d561c3e4b 100644
--- a/kernel/rcutree_plugin.h
+++ b/kernel/rcutree_plugin.h
@@ -887,9 +887,9 @@ static int rcu_preempt_pending(int cpu)
887} 887}
888 888
889/* 889/*
890 * Does preemptible RCU need the CPU to stay out of dynticks mode? 890 * Does preemptible RCU have callbacks on this CPU?
891 */ 891 */
892static int rcu_preempt_needs_cpu(int cpu) 892static int rcu_preempt_cpu_has_callbacks(int cpu)
893{ 893{
894 return !!per_cpu(rcu_preempt_data, cpu).nxtlist; 894 return !!per_cpu(rcu_preempt_data, cpu).nxtlist;
895} 895}
@@ -1128,9 +1128,9 @@ static int rcu_preempt_pending(int cpu)
1128} 1128}
1129 1129
1130/* 1130/*
1131 * Because preemptible RCU does not exist, it never needs any CPU. 1131 * Because preemptible RCU does not exist, it never has callbacks
1132 */ 1132 */
1133static int rcu_preempt_needs_cpu(int cpu) 1133static int rcu_preempt_cpu_has_callbacks(int cpu)
1134{ 1134{
1135 return 0; 1135 return 0;
1136} 1136}