Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e940cc80 authored by Paul E. McKenney's avatar Paul E. McKenney Committed by Paul E. McKenney
Browse files

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: default avatarPaul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent 8e79e1f9
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -229,6 +229,9 @@ static void show_tiny_preempt_stats(struct seq_file *m)
		seq_puts(m, "no");
		seq_puts(m, "no");
		break;
		break;
	case 1:
	case 1:
		seq_puts(m, "begun");
		break;
	case 2:
		seq_puts(m, "done");
		seq_puts(m, "done");
		break;
		break;
	default:
	default:
@@ -284,6 +287,7 @@ static int rcu_boost(void)
	raw_local_irq_restore(flags);
	raw_local_irq_restore(flags);
	rt_mutex_lock(&mtx);
	rt_mutex_lock(&mtx);
	RCU_TRACE(rcu_preempt_ctrlblk.n_tasks_boosted++);
	RCU_TRACE(rcu_preempt_ctrlblk.n_tasks_boosted++);
	rcu_preempt_ctrlblk.boosted_this_gp++;
	rt_mutex_unlock(&mtx);
	rt_mutex_unlock(&mtx);
	return rcu_preempt_ctrlblk.boost_tasks != NULL;
	return rcu_preempt_ctrlblk.boost_tasks != NULL;
}
}