aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-01-10 15:16:42 -0500
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-02-20 19:10:27 -0500
commitbec06785fe2c866ccf39cafa18935d88d77d559a (patch)
tree70b634575dc6b661a57d8da2abf2fec13eabee09
parent3caa973b7a260e7a2a69edc94c300ab9c65148c3 (diff)
rcu: Remove obsolete boost statistics for debugfs
The debugfs interface displayed statistics on RCU priority boosting, but this interface has since been removed. This commit therefore removes the no-longer-used rcu_data structure's ->n_tasks_boosted, ->n_exp_boosts, and ->n_exp_boosts and their updates. If this information proves necessary in the future, the corresponding event traces will be added. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r--kernel/rcu/tree.h6
-rw-r--r--kernel/rcu/tree_plugin.h8
2 files changed, 2 insertions, 12 deletions
diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h
index 6488a3b0e729..01abd1c4e5da 100644
--- a/kernel/rcu/tree.h
+++ b/kernel/rcu/tree.h
@@ -146,12 +146,6 @@ struct rcu_node {
146 /* boosting for this rcu_node structure. */ 146 /* boosting for this rcu_node structure. */
147 unsigned int boost_kthread_status; 147 unsigned int boost_kthread_status;
148 /* State of boost_kthread_task for tracing. */ 148 /* State of boost_kthread_task for tracing. */
149 unsigned long n_tasks_boosted;
150 /* Total number of tasks boosted. */
151 unsigned long n_exp_boosts;
152 /* Number of tasks boosted for expedited GP. */
153 unsigned long n_normal_boosts;
154 /* Number of tasks boosted for normal GP. */
155#ifdef CONFIG_RCU_NOCB_CPU 149#ifdef CONFIG_RCU_NOCB_CPU
156 struct swait_queue_head nocb_gp_wq[2]; 150 struct swait_queue_head nocb_gp_wq[2];
157 /* Place for rcu_nocb_kthread() to wait GP. */ 151 /* Place for rcu_nocb_kthread() to wait GP. */
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h
index 7e31fb1e9fd8..0d552985b905 100644
--- a/kernel/rcu/tree_plugin.h
+++ b/kernel/rcu/tree_plugin.h
@@ -963,14 +963,10 @@ static int rcu_boost(struct rcu_node *rnp)
963 * expedited grace period must boost all blocked tasks, including 963 * expedited grace period must boost all blocked tasks, including
964 * those blocking the pre-existing normal grace period. 964 * those blocking the pre-existing normal grace period.
965 */ 965 */
966 if (rnp->exp_tasks != NULL) { 966 if (rnp->exp_tasks != NULL)
967 tb = rnp->exp_tasks; 967 tb = rnp->exp_tasks;
968 rnp->n_exp_boosts++; 968 else
969 } else {
970 tb = rnp->boost_tasks; 969 tb = rnp->boost_tasks;
971 rnp->n_normal_boosts++;
972 }
973 rnp->n_tasks_boosted++;
974 970
975 /* 971 /*
976 * We boost task t by manufacturing an rt_mutex that appears to 972 * We boost task t by manufacturing an rt_mutex that appears to