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

Commit 9dc85465 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Gerrit - the friendly Code Review server
Browse files

sched/core: Improve CPU hotplug latency for rcu_expedited=1 case



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: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 84606f73
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -6332,7 +6332,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
	/*