aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/rcutree.c2
-rw-r--r--kernel/rcutree.h2
-rw-r--r--kernel/rcutree_plugin.h8
3 files changed, 6 insertions, 6 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index 49bb363a0837..0569ba11e35a 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -1958,7 +1958,7 @@ static int rcu_cpu_has_callbacks(int cpu)
1958 /* RCU callbacks either ready or pending? */ 1958 /* RCU callbacks either ready or pending? */
1959 return per_cpu(rcu_sched_data, cpu).nxtlist || 1959 return per_cpu(rcu_sched_data, cpu).nxtlist ||
1960 per_cpu(rcu_bh_data, cpu).nxtlist || 1960 per_cpu(rcu_bh_data, cpu).nxtlist ||
1961 rcu_preempt_needs_cpu(cpu); 1961 rcu_preempt_cpu_has_callbacks(cpu);
1962} 1962}
1963 1963
1964static DEFINE_PER_CPU(struct rcu_head, rcu_barrier_head) = {NULL}; 1964static DEFINE_PER_CPU(struct rcu_head, rcu_barrier_head) = {NULL};
diff --git a/kernel/rcutree.h b/kernel/rcutree.h
index 05e03675439a..58c9fc3bc820 100644
--- a/kernel/rcutree.h
+++ b/kernel/rcutree.h
@@ -449,7 +449,7 @@ static void rcu_report_exp_rnp(struct rcu_state *rsp, struct rcu_node *rnp,
449 bool wake); 449 bool wake);
450#endif /* #if defined(CONFIG_HOTPLUG_CPU) || defined(CONFIG_TREE_PREEMPT_RCU) */ 450#endif /* #if defined(CONFIG_HOTPLUG_CPU) || defined(CONFIG_TREE_PREEMPT_RCU) */
451static int rcu_preempt_pending(int cpu); 451static int rcu_preempt_pending(int cpu);
452static int rcu_preempt_needs_cpu(int cpu); 452static int rcu_preempt_cpu_has_callbacks(int cpu);
453static void __cpuinit rcu_preempt_init_percpu_data(int cpu); 453static void __cpuinit rcu_preempt_init_percpu_data(int cpu);
454static void rcu_preempt_cleanup_dying_cpu(void); 454static void rcu_preempt_cleanup_dying_cpu(void);
455static void __init __rcu_init_preempt(void); 455static void __init __rcu_init_preempt(void);
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}