Commit 1d3a64fb authored by Stephen Dickey's avatar Stephen Dickey Committed by Todd Kjos
Browse files

ANDROID: cpu/hotplug: rebuild sched domains immediately



In the resume_cpus() path, cpus cannot be taken
advantage of until the cpus write lock is acquired,
and cpus are activated and domains rebuilt.  This
can incurr significant delay in the unpause operation.

Additionally, if scheduled through the kworker thread,
the wait time for rebuilding sched domains becomes
large due to a busy system that can prevent the kworker
from executing.

Activate the cpus and call the cpuset_hotplug_workfn
directly within resume_cpus prior to getting the cpus
write lock, thereby eliminating delays associated
with scheduling this activity.

Bug: 161210528
Change-Id: Ie2521f28ed9078b22d421d792f08413016d4dd62
Signed-off-by: default avatarStephen Dickey <dickey@codeaurora.org>
Signed-off-by: default avatarTodd Kjos <tkjos@google.com>
parent e19b8ce9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment