Commit 66777e58 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcu-tasks: Use context-switch hook for PREEMPT=y kernels



Currently, the PREEMPT=y version of rcu_note_context_switch() does not
invoke rcu_tasks_qs(), and we need it to in order to keep RCU Tasks
Trace's IPIs down to a dull roar.  This commit therefore enables this
hook.

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent ac3caf82
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -331,6 +331,8 @@ void rcu_note_context_switch(bool preempt)
	rcu_qs();
	if (rdp->exp_deferred_qs)
		rcu_report_exp_rdp(rdp);
	if (!preempt)
		rcu_tasks_qs(current);
	trace_rcu_utilization(TPS("End context switch"));
}
EXPORT_SYMBOL_GPL(rcu_note_context_switch);