Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

Commit

Permalink
sched/core: Improve CPU hotplug latency for rcu_expedited=1 case
Browse files Browse the repository at this point in the history
The sched_cpu_deactivate()->synchronize_rcu_mult() is not taking
expedited path even though rcu_expedited is enabled. So split
the synchronize_rcu_mult() call into synchronize_sched() and
synchronize_rcu() to improve the hotplug latency.

Change-Id: Ic21fbf790e7ed2f314b4058a489cde7813897c1f
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
  • Loading branch information
Pavankumar Kondeti authored and 0ctobot committed Jul 13, 2019
1 parent fd0bf5c commit 8cdff35
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel/sched/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -8060,7 +8060,11 @@ int sched_cpu_deactivate(unsigned int cpu)
*
* Do sync before park smpboot threads to take care the rcu boost case.
*/
synchronize_rcu_mult(call_rcu, call_rcu_sched);

#ifdef CONFIG_PREEMPT
synchronize_sched();
#endif
synchronize_rcu();

#ifdef CONFIG_SCHED_SMT
/*
Expand Down

0 comments on commit 8cdff35

Please sign in to comment.