aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutiny_plugin.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paul.mckenney@linaro.org>2010-11-04 17:55:26 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2010-11-30 01:01:56 -0500
commite940cc804ec212e483f91167b93d1740c2fd3415 (patch)
tree9164029ed43f5884b84b72a72bf9049e013d8de9 /kernel/rcutiny_plugin.h
parent8e79e1f9615b83d1e1d26b328d1b776111ca0cf7 (diff)
rcu: Distinguish between boosting and boosted
RCU priority boosting's tracing did not distinguish between ongoing boosting and completion of boosting. This commit therefore adds this capability. 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/rcutiny_plugin.h')
-rw-r--r--kernel/rcutiny_plugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/rcutiny_plugin.h b/kernel/rcutiny_plugin.h
index f4e0df082d3c..015abaea962a 100644
--- a/kernel/rcutiny_plugin.h
+++ b/kernel/rcutiny_plugin.h
@@ -229,6 +229,9 @@ static void show_tiny_preempt_stats(struct seq_file *m)
229 seq_puts(m, "no"); 229 seq_puts(m, "no");
230 break; 230 break;
231 case 1: 231 case 1:
232 seq_puts(m, "begun");
233 break;
234 case 2:
232 seq_puts(m, "done"); 235 seq_puts(m, "done");
233 break; 236 break;
234 default: 237 default:
@@ -284,6 +287,7 @@ static int rcu_boost(void)
284 raw_local_irq_restore(flags); 287 raw_local_irq_restore(flags);
285 rt_mutex_lock(&mtx); 288 rt_mutex_lock(&mtx);
286 RCU_TRACE(rcu_preempt_ctrlblk.n_tasks_boosted++); 289 RCU_TRACE(rcu_preempt_ctrlblk.n_tasks_boosted++);
290 rcu_preempt_ctrlblk.boosted_this_gp++;
287 rt_mutex_unlock(&mtx); 291 rt_mutex_unlock(&mtx);
288 return rcu_preempt_ctrlblk.boost_tasks != NULL; 292 return rcu_preempt_ctrlblk.boost_tasks != NULL;
289} 293}